.login-layout {
    min-height: 690px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(340px, 0.65fr);

    align-items: center;

    gap: clamp(50px, 9vw, 120px);

    padding:
        clamp(70px, 10vw, 125px)
        0;
}

.login-introduction h1,
.dashboard-header h1 {
    margin: 0;

    font-size:
        clamp(43px, 5vw, 67px);

    line-height: 1;
    letter-spacing: -0.045em;
}

.login-introduction > p:not(.eyebrow),
.dashboard-header > div > p:not(.eyebrow) {
    max-width: 620px;

    color: var(--text-soft);

    font-size: 18px;
    line-height: 1.7;
}

.login-card {
    padding: 34px;

    border: 1px solid
        rgba(47, 128, 237, 0.24);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(47, 128, 237, 0.1),
            transparent 52%
        ),
        var(--surface);

    box-shadow: var(--shadow);
}

.login-card-heading h2 {
    margin: 8px 0;

    font-size: 31px;
}

.login-card-heading > p:not(.card-label) {
    margin: 0;

    color: var(--text-soft);

    line-height: 1.55;
}

.portal-form {
    display: grid;

    margin-top: 28px;
}

.portal-form label {
    margin: 17px 0 8px;

    color: #dce5f1;

    font-size: 13px;
    font-weight: 750;
}

.portal-form input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: #081321;
    color: var(--text);

    font: inherit;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.portal-form input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(47, 128, 237, 0.12);
}

.portal-submit {
    width: 100%;

    margin-top: 26px;

    cursor: pointer;
}

.form-alert {
    margin-top: 22px;
    padding: 12px 14px;

    border: 1px solid
        rgba(255, 106, 106, 0.32);

    border-radius: 10px;

    background:
        rgba(255, 106, 106, 0.08);

    color: #ffb4b4;

    font-size: 14px;
}

.login-security-note {
    margin: 18px 0 0;

    color: var(--text-soft);

    font-size: 12px;
    text-align: center;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 35px;

    padding:
        clamp(65px, 9vw, 105px)
        0 45px;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 65px;
}

.summary-card {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface);
}

.summary-label {
    color: var(--gold);

    font-size: 11px;
    font-weight: 850;

    letter-spacing: 0.13em;
}

.summary-card strong {
    display: block;

    margin-top: 15px;

    font-size: 23px;
}

.summary-card p {
    margin-bottom: 0;

    color: var(--text-soft);

    line-height: 1.5;
}

.dashboard-section {
    padding: 75px 0;

    border-top: 1px solid var(--border);
}

.dashboard-athlete-grid {
    display: grid;
    gap: 18px;
}

.dashboard-athlete-card {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 25px;

    padding: 28px;

    border: 1px solid
        rgba(47, 128, 237, 0.22);

    border-radius: 20px;

    background:
        linear-gradient(
            110deg,
            rgba(47, 128, 237, 0.12),
            transparent 55%
        ),
        var(--surface);
}

.dashboard-athlete-avatar {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    border: 1px solid
        rgba(231, 189, 84, 0.34);

    border-radius: 50%;

    background:
        rgba(231, 189, 84, 0.08);

    color: var(--gold);

    font-size: 20px;
    font-weight: 900;
}

.dashboard-athlete-copy h3 {
    margin: 7px 0;

    font-size: 26px;
}

.dashboard-athlete-copy p {
    margin: 5px 0;

    color: var(--text-soft);
}

.dashboard-athlete-actions {
    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 10px;
}

.dashboard-athlete-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.quick-action-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.quick-action-grid button {
    min-height: 135px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    padding: 21px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);
    color: var(--text);

    font: inherit;
    font-weight: 750;
    text-align: left;

    opacity: 0.55;
    cursor: not-allowed;
}

.quick-action-grid span {
    color: var(--gold);

    font-size: 11px;
    letter-spacing: 0.12em;
}

.empty-state {
    padding: 38px;

    border: 1px dashed var(--border-strong);
    border-radius: 18px;

    color: var(--text-soft);
    text-align: center;
}

.empty-state h3 {
    color: var(--text);
}

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-card {
        max-width: 560px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-athlete-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .dashboard-athlete-actions {
        grid-column: 1 / -1;

        justify-content: flex-start;
    }

    .quick-action-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .login-layout {
        min-height: auto;

        padding: 65px 0;
    }

    .login-card {
        padding: 25px;
    }

    .dashboard-athlete-card {
        grid-template-columns: 1fr;
    }

    .dashboard-athlete-avatar {
        width: 58px;
        height: 58px;
    }

    .dashboard-athlete-actions {
        display: grid;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   Add Athlete Form
   ============================================================ */

.athlete-create-card {
    max-width: 900px;

    padding: 32px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--surface);
}

.athlete-create-heading {
    margin-bottom: 28px;
}

.athlete-create-heading .dashboard-card-label {
    display: block;

    margin-bottom: 8px;
}

.athlete-create-heading h2 {
    margin: 0 0 8px;

    font-size: 24px;
}

.athlete-create-heading p {
    max-width: 620px;

    margin: 0;

    color: var(--text-soft);

    line-height: 1.6;
}


/* Override the normal single-column portal form only here. */

.portal-form.athlete-create-form {
    display: block;

    margin-top: 0;
}

.athlete-create-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px 22px;
}

.athlete-create-field {
    min-width: 0;
}

.portal-form .athlete-create-field label {
    display: block;

    margin: 0 0 8px;

    color: #dce5f1;

    font-size: 13px;
    font-weight: 750;
}

.portal-form .athlete-create-field input {
    display: block;

    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}

.athlete-create-field-hint {
    display: block;

    margin-top: 7px;

    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.45;
}


/* Keep shorter values from feeling unnecessarily oversized. */

.athlete-create-field-compact {
    max-width: 280px;
}


/* Bottom action bar */

.athlete-create-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 32px;
    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.athlete-create-actions .portal-button {
    min-width: 140px;

    justify-content: center;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {

    .athlete-create-card {
        padding: 24px;
    }

    .athlete-create-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .athlete-create-field-compact {
        max-width: none;
    }

    .athlete-create-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .athlete-create-actions .portal-button {
        width: 100%;
    }

}


@media (max-width: 560px) {

    .athlete-create-card {
        padding: 20px;

        border-radius: 16px;
    }

}
