@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary:       #4f46e5;
    --primary-dark:  #3730a3;
    --primary-light: #e0e7ff;
    --accent:        #0f766e;
    --text-main:     #0f172a;
    --text-muted:    #475569;
    --text-dim:      #94a3b8;
    --border:        #e2e8f0;
    --error:         #dc2626;
    --error-bg:      #fef2f2;
    --error-border:  #fecaca;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    overflow: hidden;
}

/* ── LAYOUT ───────────────────────────────────────────── */
.page-wrap {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ── LEFT PANEL ───────────────────────────────────────── */
.left-panel {
    flex: 0 0 48%;
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #0f766e 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}

/* decorative circles */
.left-panel::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -120px;
    right: -140px;
    pointer-events: none;
}
.left-panel::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.left-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.left-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px 0 0;
}

.left-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.left-headline span {
    color: #99f6e4;
}

.left-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 340px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon svg {
    width: 16px;
    height: 16px;
    color: #99f6e4;
}
.feature-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}
.feature-text span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.left-footer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

/* ── RIGHT PANEL ──────────────────────────────────────── */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px 32px;
    overflow-y: auto;
}

.form-box {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 36px;
}
.form-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.form-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Alert */
.alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 24px;
    font-size: 0.84rem;
    color: var(--error);
    line-height: 1.5;
    animation: shake 0.4s ease;
}
.alert-banner svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--error);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}
.input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    pointer-events: none;
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-input:focus ~ svg,
.input-wrap:focus-within svg { color: var(--primary); }

/* opts row */
.form-opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}
.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.check-label input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s;
}
.check-label input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.forgot-link {
    font-size: 0.84rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

/* Submit */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(79,70,229,0.25), 0 4px 12px rgba(79,70,229,0.2);
}
.btn-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(79,70,229,0.3), 0 6px 18px rgba(79,70,229,0.25);
    transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit svg { width: 16px; height: 16px; }

/* divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 0.78rem;
}
.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* bottom note */
.form-note {
    margin-top: 28px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-5px); }
    40%,80%  { transform: translateX(5px); }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 820px) {
    html, body { overflow: auto; }
    .page-wrap  { flex-direction: column; height: auto; min-height: 100vh; }
    .left-panel {
        flex: none;
        padding: 32px 28px 36px;
    }
    .left-body  { padding-top: 24px; gap: 20px; }
    .left-headline { font-size: 1.5rem; }
    .feature-list  { display: none; }
    .right-panel   { padding: 36px 24px 48px; }
}

@media (max-width: 480px) {
    .left-panel { padding: 24px 20px 28px; }
}
