:root {
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --primary: #10b981;
    --primary-hover: #059669;
    --dark: #0f172a;
    --slate: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --radius: 10px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--white);
    height: 100vh;
    overflow: hidden;
    color: var(--dark);
}

.auth-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
}

/* --- Left Brand Panel --- */
.auth-brand {
    width: 45%;
    height: 100vh;
    background-color: var(--dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #022c22 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Ensures Content is Vertically Centered */
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.brand-content {
    max-width: 480px;
    margin: auto; /* Centers content vertically (via flex) and horizontally */
    position: relative;
    z-index: 2;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
    text-decoration: none;
}

.logo-tagline {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 60px; /* Adjusted spacing for the image look */
    font-weight: 500;
}

.brand-headline {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 17px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 15px;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.brand-footer {
    position: absolute; /* Fixed position relative to .auth-brand */
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
}

.trust-icons {
    display: flex;
    gap: 15px;
    opacity: 0.5;
}

/* --- Right Form Panel --- */
.auth-form {
    flex: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.form-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px 0;
}

.page-sub {
    color: var(--slate);
    font-size: 15px;
    margin-bottom: 32px;
}

/* Inputs */
.input-group { margin-bottom: 20px; }

.label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-hint {
    font-size: 12px;
    color: var(--slate);
    margin-top: 6px;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.link:hover { text-decoration: underline; }

.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Divider & Socials */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--slate);
    font-size: 13px;
    font-weight: 500;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.divider span { padding: 0 15px; }

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-social:hover {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

/* Footer */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--slate);
}

.security-badge {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.terms-text {
    font-size: 12px;
    color: var(--slate);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* Alert */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Password Strength Indicator --- */
.password-strength-meter {
    display: flex;
    gap: 5px;
    height: 6px;
    margin-top: 8px;
    border-radius: 3px;
    overflow: hidden;
}

.strength-segment {
    flex: 1;
    background: var(--border);
    transition: background 0.3s ease;
    border-radius: 3px;
}

.strength-segment.weak { background-color: #f87171; }
.strength-segment.medium { background-color: #fbbf24; }
.strength-segment.strong { background-color: #22c55e; }

.strength-text {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.strength-text.weak { color: #f87171; }
.strength-text.medium { color: #fbbf24; }
.strength-text.strong { color: #22c55e; }

/* --- Custom Style for Success/Sent Pages --- */
.success-box {
    text-align: center;
    max-width: 450px;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
    margin: auto;
}
.success-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

@media (max-width: 900px) {
    .auth-wrapper { flex-direction: column; overflow-y: auto; }
    .auth-brand { display: none; }
    .auth-form { padding: 30px 20px; }
    body { height: auto; }
}