: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%;
}

.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;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.brand-content {
    max-width: 480px;
    margin: auto;
    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;
    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);
}

.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;
}

.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);
}

.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 {
    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;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--slate);
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.link:hover { text-decoration: underline; }

.terms-text {
    font-size: 12px;
    color: var(--slate);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.auth-logo-img {
    max-height: 45px;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-danger {
    color: #DB4437;
}

.text-primary {
    color: #1877F2;
}

.captcha-row {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-img {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    height: 42px;
    cursor: pointer;
}

.captcha-input {
    max-width: 150px;
}

.captcha-hint {
    font-size: 11px; 
    color: #64748b; 
    margin-top: 4px;
    display: block;
}

.password-strength-meter {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.strength-segment {
    height: 4px;
    flex: 1;
    background-color: #e2e8f0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.input-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

.strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
}

.strength-segment.weak { background-color: #ef4444; }
.strength-segment.medium { background-color: #f59e0b; }
.strength-segment.strong { background-color: #10b981; }

.strength-text.weak { color: #ef4444; }
.strength-text.medium { color: #f59e0b; }
.strength-text.strong { color: #10b981; }

.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;
}
/* Login Specific Styles */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--slate); 
    cursor: pointer;
}

.checkbox-input {
    accent-color: var(--primary);
}

.security-badge {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
/* Centered layout for success/sent pages */
.auth-wrapper-center {
    justify-content: center;
    align-items: center;
}

.auth-form-center {
    flex: none;
    width: auto;
}

/* Alert specific overrides */
.alert-success {
    background: #dcfce7;
    color: #10b981;
    border-color: #a7f3d0;
}

.text-primary {
    color: var(--primary) !important;
}

.mb-small { margin-bottom: 8px; }
.mb-medium { margin-bottom: 30px; }
.mt-none { margin-top: 0; }
.mt-large { margin-top: 32px; }
.mt-medium { margin-top: 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; }
}