*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #7F77DD;
    --purple-light: #EEEDFE;
    --purple-dark: #3C3489;
    --teal: #1D9E75;
    --teal-light: #E1F5EE;
    --teal-dark: #085041;
    --amber: #BA7517;
    --amber-light: #FAEEDA;
    --coral: #D85A30;
    --coral-light: #FAECE7;
    --red: #E24B4A;
    --red-light: #FCEBEB;
    --bg: #ffffff;
    --bg2: #f5f5f3;
    --bg3: #efeeec;
    --text: #1a1a18;
    --muted: #6b6b67;
    --border: rgba(0, 0, 0, 0.10);
    --radius: 10px;
    --radius-lg: 16px;
}

html,
body {
    min-height: 100%;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg2);
}

/* ── LAYOUT ── */
.page {
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 100vh;
}

/* ── LEFT PANEL ── */
.left-panel {
    background: var(--bg);
    border-right: 0.5px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.panel-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.logo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--purple);
}

.panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--purple-light);
    color: var(--purple-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 40px;
    margin-bottom: 28px;
    width: fit-content;
}

.panel-title {
    font-family: 'Syne', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.panel-title em {
    color: var(--purple);
    font-style: normal;
}

.panel-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 380px;
}

.panel-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pf-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pf-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pf-text .label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.pf-text .sub {
    font-size: 13px;
    color: var(--muted);
}

.panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 40px;
}

.stat-box {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.stat-box-num {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 3px;
}

.stat-box-label {
    font-size: 12px;
    color: var(--muted);
}

/* ── RIGHT PANEL ── */
.right-panel {
    background: var(--bg2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    overflow-y: auto;
}

.form-wrap {
    width: 100%;
    max-width: 400px;
}

.form-top {
    text-align: center;
    margin-bottom: 32px;
}

.form-top h2 {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-top p {
    font-size: 14px;
    color: var(--muted);
}

.form-top a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.form-top a:hover {
    text-decoration: underline;
}

/* ── FORM CARD ── */
.form-card {
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    margin-bottom: 14px;
}

.form-section-title {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 12px;
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.12);
}

input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* ── REMEMBER / FORGOT ── */
.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.remember-wrap input[type="checkbox"] {
    width: 15px;
    height: 15px;
    padding: 0;
    cursor: pointer;
    accent-color: var(--purple);
}

.forgot-link {
    font-size: 13px;
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ── PW TOGGLE ── */
.pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.pw-toggle:hover {
    color: var(--text);
}

/* ── ERROR BANNER ── */
.error-banner {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--red-light);
    border: 0.5px solid var(--red);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #791F1F;
}

.error-banner.visible {
    display: flex;
}

.error-banner i {
    font-size: 16px;
    flex-shrink: 0;
}

/* ── SUBMIT ── */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 40px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s;
    margin-bottom: 14px;
}

.btn-submit:hover {
    opacity: 0.88;
}

/* ── DIVIDER ── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--border);
}

/* ── GOOGLE ── */
.btn-google {
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s;
    margin-bottom: 24px;
}

.btn-google:hover {
    background: var(--bg2);
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* ── FORM NOTE ── */
.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.form-note a {
    color: var(--purple);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}