/* =========================================
   PREMIUM UNIFIED AUTH STYLE
   Combining Soft, Modern, & Elite Elements
   ========================================= */

:root {
    --primary-green: #145c43;
    --primary-hover: #0f4632;
    --accent-green: #198754;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

body.auth-premium-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* =============================
   LEFT PANEL: BRANDING
   ============================= */

.auth-visual-panel {
    flex: 1.2;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 40%),
                linear-gradient(135deg, #0a2e22 0%, var(--primary-green) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    color: var(--white);
    overflow: hidden;
}

/* Subtle floating glow */
.auth-visual-panel::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
}

/* Glassmorphism Effect for Background Decoration */
.auth-visual-panel::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.visual-content {
    position: relative;
    z-index: 5;
    max-width: 440px;
    animation: fadeInUp 0.8s ease-out;
}

.visual-logo {
    height: 64px;
    margin-bottom: 32px;
}

.visual-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.visual-description {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.85;
    font-weight: 400;
}

/* =============================
   RIGHT PANEL: FORM
   ============================= */

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-light);
}

.auth-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 52px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.08),
        0 0 0 1px rgba(0,0,0,0.02);
}



.auth-header {
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 8px 0;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Input Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid #e2e8f0;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(20, 92, 67, 0.1);
}

/* Action Styles */
.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--primary-green);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(20, 92, 67, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-visual-panel {
        display: none; /* Hide visual on smaller tablets/mobile */
    }
    .auth-form-panel {
        background-color: var(--white);
    }
    .auth-card {
        box-shadow: none;
        border: none;
        padding: 24px;
    }
}

.auth-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-green);
    position: relative;
}

.auth-header h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent-green);
    margin-top: 10px;
    border-radius: 2px;
}

/* =============================
   AUTH ALERT – DANGER
   ============================= */

.auth-alert {
    display: flex;
    align-items: center;
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.08);
    animation: shakeIn 0.4s ease;
}

.auth-alert svg {
    flex-shrink: 0;
    stroke: #b91c1c;
}

@keyframes shakeIn {
    0% { transform: translateX(-4px); opacity: 0; }
    50% { transform: translateX(2px); }
    100% { transform: translateX(0); opacity: 1; }
}
