* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Guarantees role-toggled sections (studentNote, consultantOptions, etc.)
   stay hidden even though their own classes set an explicit display value. */
[hidden] {
    display: none !important;
}

:root {
    --ink: #0a0f1c;
    --ink-soft: #101a2c;
    --teal: #17897c;
    --teal-light: #5fd0bd;
    --teal-dark: #0a4a44;
    --gold: #d8a857;
    --gold-light: #f0ce94;
    --clay: #c97a58;
    --clay-light: #e9a685;
    --paper: #f6f0dd;
    --paper-2: #ece1c2;
    --paper-line: #d9caa0;
    --ink-on-paper: #1c2420;
    --muted-on-paper: #7c7156;
    --muted-on-ink: #8b96a8;
    --text: #f4f1e6;

    /* هم‌رنگ با تم اصلی داشبورد (style.css / cosmic-ultimate-v3.css)
       تا صفحات ورود، ثبت‌نام و ادمین دقیقاً همون آبی/بنفش پنل رو داشته باشن. */
    --purple: #7c3aed;
    --blue: #2563eb;
    --cyan: #67e8f9;
    --panel-strong: rgba(15, 23, 42, .82);
    --border: rgba(148, 163, 184, .16);
    --muted: #8b96a8;
}

body {
    min-height: 100vh;
    font-family: "Vazirmatn", sans-serif;
    color: var(--text);
    background: var(--ink);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- ambient background: faint OMR bubble-sheet grid ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(circle, rgba(95, 208, 189, .10) 1.6px, transparent 1.8px);
    background-size: 34px 34px;
    background-position: 10px 10px;
    -webkit-mask-image: radial-gradient(circle at 30% 20%, black, transparent 72%);
    mask-image: radial-gradient(circle at 30% 20%, black, transparent 72%);
}

.glow {
    position: fixed;
    z-index: 0;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate;
}

.glow-teal {
    background: rgba(23, 137, 124, .30);
    left: -160px;
    bottom: -100px;
}

.glow-gold {
    background: rgba(216, 168, 87, .16);
    right: -140px;
    top: -120px;
    animation-delay: -9s;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(30px, -24px); }
}

@media (prefers-reduced-motion: reduce) {
    .glow { animation: none; }
}

/* ---------- page layout ---------- */
.login-page {
    position: relative;
    z-index: 1;
    width: min(1360px, calc(100% - 48px));
    min-height: 700px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    direction: ltr;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}

.brand-side,
.form-side {
    direction: rtl;
}

/* ---------- brand side ---------- */
.brand-side {
    position: relative;
    padding: 46px 56px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(23, 137, 124, .14), transparent 40%),
        var(--ink-soft);
    border-inline-end: 1px dashed rgba(216, 168, 87, .25);
}

.hero-watermark {
    position: absolute;
    top: -50px;
    left: -50px;
    font-size: 280px;
    line-height: 1;
    opacity: .04;
    transform: rotate(-8deg);
    pointer-events: none;
    filter: grayscale(1);
}

.brand-top,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 25px;
    background: linear-gradient(145deg, var(--teal), var(--teal-dark));
    box-shadow: 0 0 0 1px rgba(95, 208, 189, .25), 0 10px 24px rgba(10, 74, 68, .5);
}

.brand-top h2 {
    font-size: 19px;
}

.brand-top span,
.mobile-brand small {
    display: block;
    margin-top: 3px;
    color: var(--muted-on-ink);
    font-size: 12px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    padding: 5px 13px;
    border: 1px solid rgba(216, 168, 87, .35);
    border-radius: 100px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
}

.hero-copy h1 {
    position: relative;
    margin-top: 18px;
    font-size: clamp(36px, 4.1vw, 56px);
    line-height: 1.28;
    font-weight: 800;
}

.hero-copy h1 strong {
    color: var(--teal-light);
    font-weight: 800;
}

.hero-underline {
    display: block;
    width: 92px;
    height: 6px;
    margin-top: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--teal-light), var(--gold));
    font-style: normal;
}

.hero-copy p {
    max-width: 480px;
    margin-top: 16px;
    color: #c7cfe0;
    font-size: 15px;
    line-height: 1.9;
}

/* big achievement stats */
.stats-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    max-width: 520px;
}

.stat {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}

.stat b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-light);
}

.stat small {
    display: block;
    margin-top: 4px;
    color: var(--muted-on-ink);
    font-size: 11.5px;
}

/* compact feature chips */
.bubble-chips {
    position: relative;
    z-index: 1;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 520px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px 8px 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 100px;
    background: rgba(255, 255, 255, .025);
    color: #d7dcec;
    font-size: 12.5px;
    font-weight: 600;
}

.chip .bubble {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    font-size: 11px;
}

.bubble {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--teal-light);
    color: var(--ink);
    background: var(--teal-light);
    font-weight: 800;
    font-size: 13px;
}

.bubble-feature b,
.bubble-feature small {
    display: block;
}

.bubble-feature b {
    font-size: 14.5px;
}

.bubble-feature small {
    margin-top: 3px;
    color: var(--muted-on-ink);
    font-size: 12px;
}

/* rotating top-mentors spotlight — the hero element of the brand side */
.mentors-spotlight {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 22px 22px 20px;
    border: 1px solid rgba(216, 168, 87, .22);
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(216, 168, 87, .08), rgba(255, 255, 255, .02));
}

.spotlight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.spotlight-label {
    color: var(--gold-light);
    font-size: 13.5px;
    font-weight: 700;
}

.mentor-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: opacity .35s ease, transform .35s ease;
}


@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .mentor-ring { animation: none; }
}

.mentor-card.fade {
    opacity: 0;
    transform: translateY(8px);
}

.mentor-avatar-wrap {
  
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
}

.mentor-avatar-deco {
    position: absolute;
    inset: 8px -8px -8px 8px;
    border-radius: 28px;
    transform: rotate(9deg);
    opacity: .55;
    z-index: 0;
}

.mentor-avatar {
   
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 32px;
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.mentor-avatar.theme-0 { background: linear-gradient(135deg, var(--teal-light), var(--teal-dark)); background-image: url("IMG_20260527_030051_696.webp") !important; background-size: cover;}
.mentor-avatar-deco.theme-0 { background: linear-gradient(135deg, var(--gold), var(--teal-dark)); }
.mentor-avatar.theme-1 { background: linear-gradient(135deg, var(--gold-light), var(--teal)); background-image: url("photo_2026-09-04_15-04-08.jpg") !important; background-size: cover; }
.mentor-avatar-deco.theme-1 { background: linear-gradient(135deg, var(--teal-light), var(--gold)); }
.mentor-avatar.theme-2 { background: linear-gradient(135deg, var(--clay-light), var(--clay)); background-image: url("photo_2026-07-13_18-25-33.jpg") !important; background-size: cover;  }
.mentor-avatar-deco.theme-2 { background: linear-gradient(135deg, var(--gold-light), var(--clay)); }

.mentor-badge {
    position: absolute;
    z-index: 2;
    bottom: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
    font-size: 14px;
}

.mentor-info {
    flex: 1;
    min-width: 0;
}

.mentor-name-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.mentor-name-row b {
    font-size: 17.5px;
}

.mentor-rating {
    flex: 0 0 auto;
    color: var(--gold-light);
    font-size: 12.5px;
    font-weight: 700;
}

.mentor-info > small {
    display: block;
    margin-top: 3px;
    color: var(--teal-light);
    font-size: 12.5px;
    font-weight: 600;
}

.mentor-quote {
    margin-top: 9px;
    color: #c7cfe0;
    font-size: 12.5px;
    line-height: 1.7;
}

.mentor-dots {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    padding-inline-start: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    transition: .3s;
}

.dot.active {
    width: 18px;
    border-radius: 4px;
    background: var(--teal-light);
}

/* ---------- form side ---------- */
.form-side {
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(23, 137, 124, .10), transparent 45%),
        #070b14;
}

/* the login card styled as a real exam admission ticket */
.ticket-card {
    position: relative;
    width: min(460px, 100%);
    padding: 30px 32px 26px;
    border-radius: 20px;
    background: var(--paper);
    color: var(--ink-on-paper);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .04) inset;
    animation: cardIn .6s cubic-bezier(.2, .8, .2, 1);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ticket-card { animation: none; }
}

.ticket-seal {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--teal-dark);
    background: var(--gold-light);
    border: 2px dashed var(--teal-dark);
    font-weight: 800;
    font-size: 17px;
    transform: rotate(-12deg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

.ticket-seal small {
    display: none;
}

.ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ticket-id {
    color: var(--muted-on-paper);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}

.mobile-brand {
    display: none;
}

.mobile-brand strong {
    color: var(--ink-on-paper);
}

.login-heading {
    text-align: center;
    margin-top: 18px;
}

.welcome-icon {
    display: inline-block;
    font-size: 27px;
    margin-bottom: 2px;
}

.login-heading h2 {
    font-size: 27px;
}

.login-heading p {
    margin-top: 6px;
    color: var(--muted-on-paper);
    font-size: 13px;
}

.login-tabs {
    display: flex;
    margin: 24px 0 0;
    background: var(--paper-2);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.tab {
    flex: 1;
    padding: 11px 8px;
    color: var(--muted-on-paper);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

.tab.active {
    color: var(--paper);
    background: var(--teal-dark);
}

/* perforation: punched ticket-stub line */
.perforation {
    height: 18px;
    margin: 20px -32px 4px;
    background-image: radial-gradient(circle, var(--ink-soft) 0 5.5px, transparent 6px);
    background-size: 22px 18px;
    background-position: center;
    background-repeat: repeat-x;
    position: relative;
}

.perforation::before,
.perforation::after {
    content: "";
    position: absolute;
    top: 0;
    width: 16px;
    height: 18px;
    border-radius: 50%;
    background: var(--form-bg, #070b14);
}

.perforation::before { left: -8px; }
.perforation::after  { right: -8px; }

.secure-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 4px 0 16px;
    border: 1px dashed rgba(23, 137, 124, .4);
    border-radius: 14px;
    background: rgba(23, 137, 124, .08);
}

.secure-note span {
    font-size: 22px;
}

.secure-note b,
.secure-note small {
    display: block;
}

.secure-note small {
    margin-top: 4px;
    color: var(--muted-on-paper);
    font-size: 11px;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--muted-on-paper);
    font-size: 11px;
}

.login-card form > label,
form > label {
    display: block;
    margin: 16px 0 7px;
    font-size: 13px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 46px;
    color: var(--ink-on-paper);
    outline: none;
    border: 1px solid var(--paper-line);
    border-radius: 12px;
    background: #fffdf6;
    transition: .2s;
}

.input-wrap input::placeholder {
    color: #a99d7c;
}

.input-wrap input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(23, 137, 124, .12);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8262;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8c8262;
    cursor: pointer;
}

.code-input input {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 14px 0 20px;
    font-size: 11px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-on-paper);
    cursor: pointer;
}

.remember input {
    display: none;
}

.remember span {
    width: 17px;
    height: 17px;
    border: 1px solid #b8ac86;
    border-radius: 5px;
    transition: .2s;
    display: inline-block;
}

.remember input:checked + span {
    border-color: var(--teal);
    background: var(--teal);
}

.form-options a,
.register a {
    color: var(--teal-dark);
    font-weight: 600;
}

.login-btn {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    color: var(--paper);
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(100deg, var(--teal-dark), var(--teal));
    box-shadow: 0 14px 28px rgba(10, 74, 68, .3);
    transition: .25s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(10, 74, 68, .38);
}

.login-btn.loading {
    opacity: .65;
    pointer-events: none;
}

.register {
    margin-top: 16px;
    text-align: center;
    color: var(--muted-on-paper);
    font-size: 11px;
}

.ticket-stub {
    text-align: center;
    padding-top: 4px;
}

.stub-note {
    color: var(--muted-on-paper);
    font-size: 10.5px;
}

.stub-credit {
    margin-top: 6px;
    color: #a89a72;
    font-size: 10.5px;
}

.stub-credit b {
    color: var(--teal-dark);
    font-weight: 700;
}

/* ---------- footer trust bar ---------- */
.trust-bar {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 48px));
    margin: 22px auto 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trust-bar > div {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
}

.trust-bar span {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--teal-light);
    border: 1px solid rgba(95, 208, 189, .2);
    border-radius: 10px;
    background: rgba(95, 208, 189, .06);
}

.trust-bar b {
    font-size: 12px;
}

.trust-bar small {
    color: var(--muted-on-ink);
    font-size: 9.5px;
}

.toast {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 20;
    max-width: 340px;
    padding: 13px 17px;
    border: 1px solid rgba(23, 137, 124, .3);
    border-radius: 13px;
    color: var(--text);
    background: #101a2c;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: .25s;
    font-size: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .brand-side {
        min-height: auto;
        border-inline-end: 0;
        border-bottom: 1px dashed rgba(216, 168, 87, .25);
    }

    .form-side {
        padding: 34px;
    }
}

@media (max-width: 620px) {
    .login-page,
    .trust-bar {
        width: calc(100% - 20px);
    }

    .login-page {
        margin-top: 10px;
        border-radius: 18px;
    }

    .brand-side {
        display: none;
    }

    .form-side {
        min-height: calc(100vh - 20px);
        padding: 14px;
    }

    .ticket-card {
        padding: 24px 18px 20px;
    }

    .perforation {
        margin-inline: -18px;
    }

    .ticket-id {
        display: none;
    }

    .ticket-header {
        margin-top: 14px;
        padding-inline-start: 26px;
    }

    .mobile-brand {
        display: flex;
        margin-bottom: 6px;
    }

    .mobile-brand .brand-logo {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .login-heading h2 {
        font-size: 24px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .trust-bar {
        display: none;
    }
}
