/**
 * LeRoosa Auth Pages — Custom CSS
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --accent: #2d6a4f;
    --accent-dark: #1b4332;
    --accent-light: #d8f3dc;
    --font: 'Inter', system-ui, sans-serif;
    --body-bg: #f8fafc;
    --body-color: #1e293b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --heading-color: #0f172a;
    --surface: #f8fafc;
}

[data-theme="dark"] {
    --accent: #40916c;
    --accent-dark: #2d6a4f;
    --accent-light: #1b4332;
    --body-bg: #0f172a;
    --body-color: #e2e8f0;
    --card-bg: #1e293b;
    --border-color: #334155;
    --heading-color: #f1f5f9;
    --surface: #1e293b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: var(--body-bg);
    min-height: 100vh;
    transition: background .3s, color .3s;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT DECORATIVE PANEL ===== */
.auth-panel {
    width: 45%;
    background: linear-gradient(135deg, #0f172a 0%, #1b4332 40%, #2d6a4f 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 106, 79, .3) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 106, 79, .25) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-panel-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

.auth-tagline {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.auth-subtitle {
    color: rgba(255, 255, 255, .65);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-feature i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: #d8f3dc;
}

/* ===== RIGHT FORM PANEL ===== */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--card-bg);
    transition: background .3s;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-mobile-brand {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--heading-color);
    text-decoration: none;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.auth-mobile-brand span {
    color: var(--accent);
}

/* ===== AUTH CARD ===== */
.auth-card {
    width: 100%;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.auth-desc {
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: var(--body-color);
}

/* ===== OTP INPUTS ===== */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0 8px;
}

.otp-box {
    width: 52px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: var(--surface);
}

.otp-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, .15);
    background: var(--card-bg);
}

.otp-sent-info {
    text-align: center;
    padding: 20px 0 8px;
}

.otp-sent-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-light), #b7e4c7);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    color: var(--accent);
    margin: 0 auto 12px;
}

[data-theme="dark"] .otp-sent-icon {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
}

/* ===== FORM ELEMENTS ===== */
.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: .2s;
    background: var(--card-bg);
    color: var(--body-color);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, .12);
}

.input-group-text {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--body-color);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--body-color);
    margin-bottom: 6px;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    border-radius: 10px;
    font-weight: 600;
    padding: 11px 20px;
    transition: .2s;
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 500;
    color: var(--body-color);
    padding: 10px;
}

.btn-outline-secondary:hover {
    background: var(--surface);
    border-color: var(--border-color);
}

/* ===== SOCIAL BUTTONS ===== */
.btn-social {
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--body-color);
    font-weight: 500;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.btn-social:hover {
    background: var(--surface);
    border-color: var(--border-color);
    color: var(--heading-color);
}

.btn-facebook {
    color: #1877f2 !important;
}

/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--body-color);
    font-size: 0.8rem;
    opacity: .6;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-form-panel {
        min-height: 100vh;
    }
}
