/* ─────────────────────────────────────────
   Megh Tech Tutor — Login Page Styles
   login.css
───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES (must match style.css) ─── */
:root {
    --ink:      #0d1117;
    --paper:    #f7f4ef;
    --cream:    #ede9e1;
    --gold:     #c9a84c;
    --gold-lt:  #f0d98a;
    --forest:   #1e4d3a;
    --forest-d: #163d2e;
    --sky:      #1a6fa8;
    --muted:    #6b6b6b;
    --danger:   #b84a4a;
    --radius:   14px;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: var(--ink);
    color: var(--ink);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   LAYOUT — two-column full-height split
═══════════════════════════════════════ */
.login-root {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ─── LEFT PANEL ─── */
.login-left {
    position: relative;
    background: var(--forest);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px;
    overflow: hidden;
}

/* decorative orbs */
.login-left::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.22) 0%, transparent 65%);
    top: -140px; left: -100px;
    pointer-events: none;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,111,168,.18) 0%, transparent 65%);
    bottom: -80px; right: -60px;
    pointer-events: none;
}

/* diagonal texture overlay */
.left-texture {
    position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(
            55deg,
            transparent,
            transparent 32px,
            rgba(255,255,255,.025) 32px,
            rgba(255,255,255,.025) 33px
    );
}

/* brand mark */
.left-brand {
    position: relative; z-index: 2; margin-bottom: 56px;
    display: flex; align-items: center; gap: 10px;
}
.left-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 900;
    color: #fff; letter-spacing: -.5px;
}
.left-brand-name span { color: var(--gold); }

/* headline block */
.left-content { position: relative; z-index: 2; }

.left-eyebrow {
    display: inline-block;
    font-size: .72rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 100px;
    padding: 5px 14px; margin-bottom: 20px;
}

.left-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 900; line-height: 1.18; color: #fff;
    margin-bottom: 18px;
}
.left-headline em { color: var(--gold-lt); font-style: normal; }

.left-sub {
    font-size: .97rem; color: rgba(255,255,255,.65);
    line-height: 1.75; margin-bottom: 48px;
    max-width: 380px;
}

/* trust badges */
.left-badges {
    display: flex; flex-direction: column; gap: 16px;
}
.left-badge {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; padding: 14px 18px;
}
.badge-icon {
    font-size: 1.4rem; line-height: 1; flex-shrink: 0;
}
.badge-text strong {
    display: block; font-size: .88rem; font-weight: 600; color: #fff;
    margin-bottom: 2px;
}
.badge-text span {
    font-size: .78rem; color: rgba(255,255,255,.5);
}

/* ─── RIGHT PANEL ─── */
.login-right {
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 48px;
    position: relative;
}

/* subtle dot grid */
.login-right::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(0,0,0,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .5;
}

.form-wrap {
    position: relative; z-index: 2;
    width: 100%; max-width: 400px;
}

/* Step indicator */
.step-indicator {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 36px;
}
.step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700;
    transition: all .3s;
}
.step-dot.active {
    background: var(--forest); color: #fff;
}
.step-dot.inactive {
    background: var(--cream); color: var(--muted);
    border: 1.5px solid #d8d4cc;
}
.step-dot.done {
    background: var(--forest); color: #fff;
}
.step-connector {
    flex: 1; height: 2px;
    background: var(--cream); border-radius: 2px;
    overflow: hidden;
}
.step-connector-fill {
    height: 100%; width: 0%;
    background: var(--forest);
    transition: width .5s ease;
}
.step-connector-fill.full { width: 100%; }

/* Form heading */
.form-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem; font-weight: 900; color: var(--ink);
    margin-bottom: 6px; line-height: 1.15;
}
.form-sub {
    font-size: .9rem; color: var(--muted);
    margin-bottom: 32px; line-height: 1.6;
}

/* Input group */
.input-group-custom { margin-bottom: 20px; }
.input-group-custom label {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--ink); margin-bottom: 7px; letter-spacing: .2px;
}
.input-shell {
    position: relative;
}
.input-shell .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 1rem; pointer-events: none;
    color: var(--muted);
}
.input-shell input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    border: 1.5px solid #d8d4cc;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input-shell input:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(30,77,58,.12);
}
.input-shell input::placeholder { color: #b8b4ac; }

/* Phone prefix badge */
.phone-prefix {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: .82rem; font-weight: 700; color: var(--forest);
    background: rgba(30,77,58,.1);
    border-radius: 6px; padding: 3px 8px;
    pointer-events: none;
}
.input-shell.has-prefix input { padding-left: 68px; }

/* OTP input row */
.otp-row {
    display: flex; gap: 10px; margin-bottom: 20px;
}
.otp-box {
    flex: 1;
    max-width: 42px;          /* 👈 controls width */
    height: 48px;             /* 👈 controls height */
    text-align: center;

    font-size: 1.05rem;       /* 👈 smaller text */
    font-weight: 600;

    border: 1.3px solid #d8d4cc;
    border-radius: 8px;       /* 👈 slightly tighter */

    background: #fff;
    color: var(--ink);

    outline: none;
    transition: all 0.2s ease;

    caret-color: var(--forest);
}
.otp-box:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 2px rgba(30,77,58,.15);
    transform: translateY(-1px);
}

.otp-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;   /* was 10px */
    margin-bottom: 20px;
}

/* Resend row */
.resend-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; font-size: .83rem;
}
.resend-timer { color: var(--muted); }
.resend-timer span { font-weight: 700; color: var(--forest); }
.resend-btn {
    background: none; border: none; cursor: pointer;
    color: var(--forest); font-weight: 600; font-size: .83rem;
    padding: 0; transition: opacity .2s;
}
.resend-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Submit button */
.btn-submit {
    width: 100%; padding: 14px;
    background: var(--forest); color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .97rem; font-weight: 700;
    border: none; border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    margin-bottom: 20px;
}
.btn-submit:hover {
    background: var(--forest-d);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(30,77,58,.3);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit .btn-arrow { transition: transform .2s; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

/* Alert messages */
.alert-msg {
    border-radius: 10px; padding: 12px 16px;
    font-size: .85rem; font-weight: 500;
    margin-bottom: 20px; display: none;
}
.alert-msg.show { display: block; }
.alert-msg.success {
    background: #d1e7dd; color: #155724;
    border: 1px solid #a3cfbb;
}
.alert-msg.error {
    background: #f8d7da; color: #842029;
    border: 1px solid #f1aeb5;
}


.alert-close-btn {
    background: none; border: none;
    font-size: 1.3rem; line-height: 1;
    color: inherit; opacity: .6;
    cursor: pointer; float: right;
    padding: 0 0 0 8px;
}
.alert-close-btn:hover { opacity: 1; }

/* Register link */
.register-link {
    text-align: center; font-size: .88rem; color: var(--muted);
}
.register-link a {
    color: var(--forest); font-weight: 700; text-decoration: none;
    transition: color .2s;
}
.register-link a:hover { color: var(--forest-d); }

/* Phone display in OTP step */
.phone-display {
    display: flex; align-items: center; gap: 10px;
    background: rgba(30,77,58,.08);
    border: 1px solid rgba(30,77,58,.2);
    border-radius: 10px; padding: 12px 16px;
    margin-bottom: 24px;
}
.phone-display .phone-num {
    font-weight: 700; color: var(--forest); font-size: .93rem;
}
.phone-display .change-link {
    margin-left: auto;
    font-size: .8rem; font-weight: 600; color: var(--muted);
    cursor: pointer; text-decoration: underline;
    background: none; border: none;
    transition: color .2s;
}
.phone-display .change-link:hover { color: var(--forest); }

/* Dev OTP chip */
.dev-chip {
    display: none;
    margin-bottom: 20px;
    background: #fff8e6;
    border: 1.5px dashed var(--gold);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .82rem;
    color: #7a5e10;
}
.dev-chip.show { display: block; }
.dev-chip strong { color: var(--forest); }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.login-left .left-brand,
.login-left .left-eyebrow,
.login-left .left-headline,
.login-left .left-sub,
.login-left .left-badges {
    opacity: 0;
    animation: fadeUp .55s ease forwards;
}
.login-left .left-brand    { animation-delay: .05s; }
.login-left .left-eyebrow  { animation-delay: .15s; }
.login-left .left-headline { animation-delay: .25s; }
.login-left .left-sub      { animation-delay: .32s; }
.login-left .left-badges   { animation-delay: .42s; }

.form-wrap {
    opacity: 0;
    animation: fadeUp .6s ease .2s forwards;
}

/* Step transition */
.form-step {
    animation: fadeIn .35s ease;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 860px) {
    .login-root {
        grid-template-columns: 1fr;
        background: var(--paper);
    }
    .login-left { display: none; }
    .login-right {
        padding: 48px 24px;
        min-height: 100vh;
    }
}

.d-none {
    display: none !important;
}

.form-step {
    transition: opacity 0.3s ease;
}




.or-divider {
  text-align: center;
  margin: 12px 0;
  font-weight: 600;
  color: #888;
}



/* ═══════════════════════════════════════
   COMPLETE_PROFILE STYLING
═══════════════════════════════════════ */
.ts-control {
    border-radius: 12px !important;
    border: 1.5px solid #d8d4cc !important;
    padding: 10px 14px !important;
    min-height: 52px;
    font-size: 15px;
    box-shadow: none !important;
}

.ts-control.focus {
    border-color: #b89b72 !important;
    box-shadow: 0 0 0 3px rgba(184, 155, 114, 0.12) !important;
}

.ts-dropdown {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #ece6da !important;
}

.ts-dropdown .option {
    padding: 12px 14px;
}

.ts-dropdown .active {
    background: #f7f1e7 !important;
}

/*.ts-control input {
    min-width: 1px !important;
    opacity: 0 !important;
    position: absolute;
}*/

.ts-control input {
    min-width: 1px !important;
    opacity: 1 !important;
    position: relative !important;

    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    caret-color: #111 !important;
}

.custom-select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid #d8d4cc;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    cursor: pointer;
}

.custom-select:focus {
    border-color: #b89b72;
    box-shadow: 0 0 0 3px rgba(184, 155, 114, 0.12);
}

.other-school-box {
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
    background: #faf6ef;
    border: 1.5px solid #e6d8bd;
    animation: fadeIn 0.25s ease;
}

.other-school-header {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: #8b5e1a;
}

.other-school-text {
    font-size: 13px;
    color: #6d6558;
    margin-bottom: 12px;
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*error validation message*/
.error-message{
    display:none;
    color:#d93025;
    font-size:13px;
    margin-top:6px;
    font-weight:500;
}

.input-error{
    border:1.5px solid #d93025 !important;
}

/*phone no*/
.phone-error{
    display:none;
    color:#d93025;
    font-size:12px;
    margin-top:5px;
    font-weight:500;
}
.phone-error.show{
    display:block;
}

.gender{
    width:100%; padding:13px; border-radius:10px; border:1.5px solid #d8d4cc;
}

.hidden {
    display: none !important;
}




/*CATCHA STYILING*/

.captcha-section {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
}

.captcha-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.captcha-help {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.captcha-image-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.captcha-image {
    width: 240px;
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.captcha-refresh {
    border: 1px solid #dee2e6;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
}

.captcha-input {
    text-transform: uppercase;
    letter-spacing: 0.15rem;
}