:root{
    --green:       #22c55e;
    --green-dark:  #16a34a;
    --green-light: #f0fdf4;
    --green-mid:   #dcfce7;
    --text:   #1a1a1a;
    --muted:  #6b7280;
    --border: #d1d5db;
    --white:  #ffffff;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

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

html {
    overflow: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #f3f4f6;
    color: var(--text);
    min-height: 100vh;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
}

.nav-logo { 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    overflow: hidden; 
    flex-shrink: 0; 
}

.nav-logo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.nav-text .brand { 
    font-weight: 700; 
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.2; 
}

.nav-text .sub { 
    font-size: 10.5px; 
    color: var(--green-dark); 
    font-weight: 600; 
    letter-spacing: .09em; 
    text-transform: uppercase; 
}

.page { 
    display: none; 
}

.page.active { 
    display: flex;
    height: calc(100vh - 57px);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;            /* prevent page from growing */
    animation: fadeIn .3s ease; 
}

@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.split {
    display: flex;
    width: 100%;
    max-width: 820px;
    align-self: center;
    box-shadow: var(--shadow);
    border-radius: 14px;
    overflow: hidden;
    max-height: calc(100vh - 137px);  /* 57px nav + 40px padding top + 40px padding bottom */
}

.split-left {
    background: var(--green-light);
    padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 36px);
    width: clamp(200px, 30%, 300px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: auto;
    overflow-y: auto;           /* left side scrolls if needed */
}

.split-right {
    flex: 1;
    background: var(--white);
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;           /* right side scrolls when content is tall */
    height: auto;
}

.split-left.spaced { 
    justify-content: space-between; 
}

.left-tagline { 
    font-size: clamp(15px, 2.5vw, 21px);
    font-weight: 700; 
    line-height: 1.4; 
    color: var(--text); 
}

.left-desc { 
    font-size: clamp(12px, 1.5vw, 13px);
    color: var(--muted); 
    line-height: 1.65; 
}

.hours-block { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}

.hours-section-label { 
    font-size: 10px; 
    font-weight: 700; 
    letter-spacing: .1em; 
    text-transform: uppercase; 
    color: var(--muted); 
    margin-bottom: 4px; 
}

.hours-title { 
    font-size: 13.5px; 
    font-weight: 700; 
    color: var(--green-dark); 
    margin-bottom: 2px; 
}

.hours-desc { 
    font-size: 12.5px; 
    color: var(--muted); 
    line-height: 1.5; 
}

.reg-steps { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}

.reg-step { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.reg-step-num {
    width: 27px; height: 27px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700;
    background: #e9eaec; color: var(--muted);
    flex-shrink: 0; border: 2px solid var(--border);
    transition: background .2s, color .2s, border-color .2s;
}

.reg-step-num.active { 
    background: var(--green); 
    color: #fff; 
    border-color: var(--green); 
}

.reg-step-num.done { 
    background: #e9eaec; 
    color: var(--muted); 
    border-color: var(--border); 
}

.reg-step-text { 
    font-size: 13px; 
    color: var(--muted); 
}

.reg-step-text.active { 
    color: var(--text); 
    font-weight: 600; 
}

.steps { 
    display: flex; 
    flex-direction: column;
    gap: 14px; 
}

.step { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.step-num {
    width: 27px; height: 27px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700;
    background: #e9eaec; color: var(--muted);
    flex-shrink: 0; border: 2px solid var(--border);
}

.step-num.active { background: var(--green); color: #fff; border-color: var(--green); }
.step-text { font-size: 13px; color: var(--muted); }
.step-text.active { color: var(--text); font-weight: 600; }

.split-right {
    flex: 1;
    background: var(--white);
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    overflow-y: visible;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    margin-bottom: 18px;
    transition: background .18s, border-color .18s;
    flex-shrink: 0;
}

.back-btn:hover { background: #f3f4f6; border-color: #9ca3af; }
.back-btn svg {
    width: 16px; height: 16px;
    stroke: var(--muted); fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.btn-outline {
    width: 100%; padding: 12px;
    background: transparent; color: var(--muted);
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: background .18s, border-color .18s;
    margin-top: 10px;
}

.btn-outline:hover { background: #f3f4f6; border-color: #9ca3af; color: var(--text); }

.form-title { 
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 700; 
    margin-bottom: 4px; 
}

.form-sub { 
    font-size: 13px; 
    color: var(--muted); 
    margin-bottom: 26px; 
}

.section-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 18px;
}

.section-header svg {
    width: 15px; height: 15px;
    stroke: var(--green-dark); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.section-header span {
    font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--green-dark);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.field label .req { color: var(--green-dark); font-size: 12px; }
.field-hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.field-wrap { position: relative; }

.field input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: 7px;
    font-size: 13.5px; font-family: inherit; outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff; color: var(--text);
}

.field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.field input::placeholder { color: #b0b7c3; }

.eye-btn {
    position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    padding: 3px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
}

.eye-btn:hover { background: #f3f4f6; }

.field input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.field input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.error-msg {
    font-size: 11.5px; color: #ef4444;
    margin-top: 4px;
    display: flex; align-items: center; gap: 4px;
}

.error-msg::before { content: '⚠'; font-size: 11px; }
.otp-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.check-row.error-check label { color: #ef4444; }

.check-error {
    font-size: 11.5px; color: #ef4444;
    margin-top: -10px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 4px;
}

.check-error::before { content: '⚠'; font-size: 11px; }

.remember-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}

.login-error-banner {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}
#success-modal .modal-card {
    border: 2px solid #10b981 !important;
}

#success-modal .modal-icon-wrap {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}
.remember-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.remember-row input[type=checkbox] { accent-color: var(--green); width: 15px; height: 15px; }
.forgot-link { font-size: 13px; color: var(--green-dark); font-weight: 600; cursor: pointer; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 20px; }
.check-row input[type=checkbox] { accent-color: var(--green); width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.check-row label { font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check-row label a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.check-row label a:hover { text-decoration: underline; }

.btn-primary {
    width: 100%; padding: 13px;
    background: var(--green); color: #fff;
    border: none; border-radius: 8px;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .18s, transform .1s;
}

.btn-primary:hover  { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary:active { transform: none; }

.bottom-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.bottom-link a { color: var(--green-dark); font-weight: 700; cursor: pointer; text-decoration: none; }
.bottom-link a:hover { text-decoration: underline; }

.otp-input {
    width: 100%; padding: 13px 14px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700; letter-spacing: .25em;
    text-align: center; font-family: inherit; outline: none;
    background: #fff; margin-bottom: 20px;
    transition: border-color .2s;
}

.otp-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.12); }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 100;
    align-items: center;
    justify-content: center;
    animation: fadeIn .25s ease;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: var(--white);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 36px);
    max-width: 360px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn { from { opacity:0; transform:scale(.85); } to { opacity:1; transform:scale(1); } }

.modal-icon-wrap {
    width: 68px; height: 68px; border-radius: 50%;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}

.modal-icon-wrap svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.modal-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* Tablet */
@media (max-width: 820px) {
    .page.active {
        padding: 24px 16px;
    }
    .split {
        border-radius: 10px;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .split { flex-direction: column; }
    .split-left { 
        width: 100%; 
        padding: 20px 18px; 
        gap: 16px;
    }
    .split-left .hours-block,
    .split-left .steps,
    .split-left .reg-steps { display: none; }
    .split-right { 
        padding: 24px 18px; 
        justify-content: flex-start;
    }
    .field-row { grid-template-columns: 1fr; }
    .nav { padding: 10px 16px; }
    .otp-input { font-size: 18px; letter-spacing: .2em; }
    .btn-primary,
    .btn-outline { font-size: 14px; padding: 12px; }
}

/* Small phones */
@media (max-width: 380px) {
    .page.active { padding: 16px 12px; }
    .split-right { padding: 18px 14px; }
    .field input { font-size: 13px; }
    .otp-input { font-size: 16px; letter-spacing: .15em; }
    .modal-card { padding: 24px 16px; }
    .form-title { margin-bottom: 2px; }
}