/* Student account experience: clear access, practical dashboard, and human recovery. */
body.student-access-page .student-access-shell {
    max-width: min(100% - 2rem, 1320px);
    margin-inline: auto;
}

body.student-login-page .student-login-story,
body.student-recovery-page .student-recovery-story {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: clamp(1.55rem, 3.5vw, 3rem);
    border: 1px solid rgba(232, 216, 178, 0.18);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 92% 10%, rgba(222, 177, 91, 0.22), transparent 18rem),
        radial-gradient(circle at 8% 94%, rgba(99, 163, 139, 0.18), transparent 19rem),
        linear-gradient(145deg, #173f3f, #235d55 58%, #32776b);
    box-shadow: 0 1.4rem 3rem rgba(26, 65, 59, 0.17);
    color: #fffdf8;
}

body.student-login-page .student-login-story::after,
body.student-recovery-page .student-recovery-story::after {
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 14rem;
    height: 14rem;
    border: 1.25rem solid rgba(249, 231, 190, 0.12);
    border-radius: 50%;
    content: '';
}

body.student-access-page .student-login-story > *,
body.student-access-page .student-recovery-story > * {
    position: relative;
    z-index: 1;
}

body.student-access-page .student-login-story-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.45rem 0.68rem;
    border: 1px solid rgba(248, 226, 176, 0.26);
    border-radius: 999px;
    background: rgba(18, 57, 54, 0.22);
    color: #f7dcaa;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

body.student-access-page .student-login-story h1,
body.student-access-page .student-recovery-story h1 {
    max-width: 13ch;
    margin: 1.3rem 0 0;
    color: #fffdf8;
    font-size: clamp(2.15rem, 4.1vw, 4rem);
    line-height: 0.97;
}

body.student-access-page .student-login-story > p,
body.student-access-page .student-recovery-story > p {
    max-width: 36rem;
    margin-top: 1rem;
    color: rgba(255, 253, 247, 0.78);
    font-size: 0.92rem;
    line-height: 1.7;
}

body.student-access-page .student-login-points {
    display: grid;
    gap: 0.74rem;
    margin-top: 1.5rem;
}

body.student-access-page .student-login-points article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.66rem;
    padding: 0.73rem;
    border: 1px solid rgba(245, 228, 192, 0.16);
    border-radius: 0.82rem;
    background: rgba(255, 253, 247, 0.075);
}

body.student-access-page .student-login-points article > span {
    display: grid;
    width: 1.85rem;
    height: 1.85rem;
    place-items: center;
    border-radius: 0.58rem;
    background: rgba(239, 210, 147, 0.17);
    color: #f6d99e;
    font-size: 0.58rem;
    font-weight: 900;
}

body.student-access-page .student-login-points strong,
body.student-access-page .student-login-points small { display: block; }
body.student-access-page .student-login-points strong { color: #fffdf8; font-size: 0.75rem; }
body.student-access-page .student-login-points small { margin-top: 0.18rem; color: rgba(255, 253, 247, 0.68); font-size: 0.64rem; line-height: 1.45; }

body.student-access-page .student-login-story-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.35rem;
}

body.student-access-page .student-login-story-footer span {
    padding: 0.35rem 0.52rem;
    border: 1px solid rgba(247, 225, 179, 0.2);
    border-radius: 999px;
    color: rgba(255, 253, 247, 0.8);
    font-size: 0.6rem;
    font-weight: 750;
}

body.student-access-page .student-login-card,
body.student-access-page .student-recovery-card {
    min-height: 100%;
    padding: clamp(1.45rem, 3.2vw, 2.7rem);
    border-color: rgba(34, 85, 77, 0.15);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 94% 8%, rgba(211, 154, 66, 0.11), transparent 13rem),
        linear-gradient(145deg, #fffdf8, #f4ede0);
    box-shadow: 0 1.2rem 2.7rem rgba(31, 67, 61, 0.09);
}

body.student-access-page .student-login-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

body.student-access-page .student-login-card-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 1px solid rgba(39, 101, 91, 0.16);
    border-radius: 0.88rem;
    background: linear-gradient(145deg, #e9f0e7, #d9e5d8);
    color: #326c60;
    font-size: 0.67rem;
    font-weight: 900;
}

body.student-access-page .student-login-card-head small,
body.student-access-page .student-login-card-head strong { display: block; }
body.student-access-page .student-login-card-head small { color: #996829; font-size: 0.6rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
body.student-access-page .student-login-card-head strong { margin-top: 0.16rem; color: #31564f; font-size: 0.78rem; }
body.student-access-page .student-login-card h2,
body.student-access-page .student-recovery-card h2 { margin: 1.5rem 0 0; color: #234943; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.02; }
body.student-access-page .student-login-card > p,
body.student-access-page .student-recovery-card > p { max-width: 38rem; margin-top: 0.7rem; color: #68766f; font-size: 0.8rem; line-height: 1.65; }
body.student-access-page .student-login-card .form-label,
body.student-access-page .student-recovery-card .form-label { color: #3a5b53; font-size: 0.72rem; font-weight: 850; }
body.student-access-page .student-login-card .form-control,
body.student-access-page .student-recovery-card .form-control { min-height: 3.15rem; border-color: rgba(35, 88, 79, 0.2); background: #fffdf8; color: #274943; }
body.student-access-page .student-login-card .form-control:focus,
body.student-access-page .student-recovery-card .form-control:focus { border-color: #347b6e; box-shadow: 0 0 0 0.22rem rgba(52, 123, 110, 0.13); }

body.student-access-page .student-login-security-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.58rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.82rem;
    border-left: 3px solid #c98d3b;
    border-radius: 0.72rem;
    background: #fff7e8;
}

body.student-access-page .student-login-security-note > span {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border-radius: 0.48rem;
    background: #f1ddb0;
    color: #765323;
    font-size: 0.56rem;
    font-weight: 900;
}

body.student-access-page .student-login-security-note p { margin: 0; color: #76694f; font-size: 0.67rem; line-height: 1.5; }

body.buyer-login-page .buyer-verification-card {
    background:
        radial-gradient(circle at 92% 9%, rgba(55, 127, 110, 0.12), transparent 14rem),
        radial-gradient(circle at 5% 98%, rgba(211, 154, 66, 0.12), transparent 16rem),
        linear-gradient(145deg, #fffdf8, #f0f5ee);
}

body.buyer-login-page .buyer-verification-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin: 1.15rem 0 1.45rem;
}

body.buyer-login-page .buyer-verification-summary span {
    padding: 0.37rem 0.56rem;
    border: 1px solid rgba(43, 106, 94, 0.14);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.78);
    color: #567068;
    font-size: 0.62rem;
    font-weight: 750;
}

body.buyer-login-page .buyer-code-form {
    max-width: 30rem;
}

body.buyer-login-page .buyer-code-input {
    min-height: 4.2rem;
    border-width: 2px;
    border-color: rgba(44, 112, 100, 0.28);
    border-radius: 0.92rem;
    background: #fffefa;
    color: #1f5148;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.34em;
    text-align: center;
}

body.buyer-login-page .buyer-code-input::placeholder {
    color: #b4c1b7;
    opacity: 1;
}

body.buyer-login-page .buyer-verification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

body.buyer-login-page .buyer-verification-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.18rem 0.8rem;
    margin-top: 1.35rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(44, 104, 94, 0.12);
}

body.buyer-login-page .buyer-verification-footer > span {
    color: #6e766d;
    font-size: 0.69rem;
}

body.buyer-login-page .buyer-verification-footer form { margin: 0; }
body.buyer-login-page .buyer-verification-footer .btn-link { padding: 0.18rem 0; color: #2b7164; font-size: 0.69rem; font-weight: 800; text-decoration: none; }
body.buyer-login-page .buyer-verification-footer .btn-link:hover { color: #9b6425; text-decoration: underline; }

body.student-dashboard-page .student-dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.3rem, 3vw, 2.35rem);
    border-color: rgba(34, 84, 76, 0.15);
    border-radius: 1.3rem;
    background:
        radial-gradient(circle at 92% 10%, rgba(211, 154, 66, 0.16), transparent 16rem),
        radial-gradient(circle at 4% 96%, rgba(43, 117, 104, 0.11), transparent 19rem),
        linear-gradient(135deg, #fffdf8, #f4ede0);
    box-shadow: 0 1.15rem 2.6rem rgba(31, 67, 61, 0.09);
}

body.student-dashboard-page .student-dashboard-identity {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

body.student-dashboard-page .student-dashboard-identity span {
    padding: 0.36rem 0.56rem;
    border: 1px solid rgba(40, 104, 94, 0.14);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.74);
    color: #5d716a;
    font-size: 0.62rem;
}

body.student-dashboard-page .student-dashboard-identity b { color: #2e6f64; }
body.student-dashboard-page .student-profile-grid > div { padding: 0.8rem; border: 1px solid rgba(38, 89, 81, 0.11); border-radius: 0.78rem; background: rgba(255, 253, 248, 0.7); }
body.student-dashboard-page .student-profile-grid strong { display: block; margin-bottom: 0.2rem; color: #315b53; font-size: 0.62rem; }

body.student-dashboard-page .student-dashboard-stat {
    min-height: 9rem;
    border-color: rgba(37, 89, 80, 0.14);
    background: linear-gradient(145deg, #fffdf8, #f4eee1);
}

body.student-dashboard-page .student-dashboard-stat:nth-child(1)::after { border-color: rgba(44, 111, 100, 0.12); }
body.student-dashboard-page .student-dashboard-stat:nth-child(2)::after { border-color: rgba(201, 141, 59, 0.14); }
body.student-dashboard-page .student-dashboard-stat:nth-child(3)::after { border-color: rgba(104, 135, 92, 0.14); }
body.student-dashboard-page .student-dashboard-stat strong { color: #286459; }

body.student-dashboard-page .student-quick-actions-panel,
body.student-dashboard-page .student-support-panel,
body.student-dashboard-page .student-order-history-panel {
    border-color: rgba(37, 89, 80, 0.14);
    border-radius: 1.1rem;
    background: rgba(255, 253, 248, 0.86);
}

body.student-dashboard-page .account-action-card {
    border-color: rgba(38, 89, 81, 0.12);
    border-radius: 0.86rem;
    background: linear-gradient(145deg, #fffdf8, #f5f1e7);
}

body.student-dashboard-page .account-action-card:hover { border-color: rgba(44, 112, 101, 0.32); }
body.student-dashboard-page .student-support-panel { background: linear-gradient(145deg, #f0f4eb, #fbf7ee); }
body.student-dashboard-page .project-queue-item { border-color: rgba(38, 89, 81, 0.13); background: #fffdf8; }

body.student-recovery-page .student-recovery-story h1 { max-width: 15ch; }
body.student-recovery-page .student-recovery-story .support-checklist li { color: rgba(255, 253, 247, 0.77); }
body.student-recovery-page .student-recovery-story .support-checklist li::before { background: #e0b665; box-shadow: 0 0 0 5px rgba(224, 182, 101, 0.12); }
body.student-recovery-page .student-recovery-story .mini-note-card { border-color: rgba(248, 225, 180, 0.16); background: rgba(255, 253, 247, 0.08); }
body.student-recovery-page .student-recovery-story .mini-note-card strong { color: #fffdf8; }
body.student-recovery-page .student-recovery-story .mini-note-card span { color: rgba(255, 253, 247, 0.7); }
body.student-recovery-page .student-recovery-story .btn-outline-dark { border-color: rgba(247, 225, 179, 0.36); background: rgba(255, 253, 247, 0.08); color: #fffdf8; }
body.student-recovery-page .student-recovery-story .btn-primary { background: linear-gradient(135deg, #cb9140, #dfb262); color: #fffdf8; }

@media (max-width: 767.98px) {
    body.student-access-page .student-access-shell { max-width: min(100% - 1.1rem, 1320px); }
    body.student-access-page .student-login-story,
    body.student-access-page .student-recovery-story,
    body.student-access-page .student-login-card,
    body.student-access-page .student-recovery-card,
    body.student-dashboard-page .student-dashboard-hero { border-radius: 1rem; }
    body.student-access-page .student-login-story h1,
    body.student-access-page .student-recovery-story h1 { max-width: 100%; font-size: clamp(2rem, 11vw, 3.1rem); }
    body.student-dashboard-page .student-dashboard-identity { display: grid; }
    body.student-dashboard-page .account-quick-actions { grid-template-columns: 1fr; }
    body.buyer-login-page .buyer-verification-actions { display: grid; }
    body.buyer-login-page .buyer-verification-actions .btn { width: 100%; }
    body.buyer-login-page .buyer-code-input { letter-spacing: 0.23em; }
}

@media (prefers-reduced-motion: reduce) {
    body.student-dashboard-page .account-action-card { transition: none; }
    body.student-dashboard-page .account-action-card:hover { transform: none; }
}
