/* ============================================
   PCDCR CMS - Authentication Pages
   ============================================
   Split layout: Form (right) + Branding (left)
   Responsive: stacks on mobile
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--clr-white);
}

/* === RIGHT SIDE: Form === */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-10);
}

.auth-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--clr-primary-500), var(--clr-primary-700));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--fs-xl);
    font-weight: var(--fw-extrabold);
    font-family: var(--font-display);
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3);
}

.auth-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-logo-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--clr-gray-900);
    line-height: 1.2;
}

.auth-logo-subtitle {
    font-size: var(--fs-xs);
    color: var(--clr-gray-500);
    letter-spacing: 0.5px;
}

/* Welcome Text */
.auth-welcome {
    margin-bottom: var(--sp-8);
}

.auth-welcome h1 {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-extrabold);
    color: var(--clr-gray-900);
    margin-bottom: var(--sp-2);
}

.auth-welcome p {
    font-size: var(--fs-base);
    color: var(--clr-gray-500);
    margin-bottom: 0;
}

/* Form Styling */
.auth-form .form-group {
    margin-bottom: var(--sp-5);
}

.auth-form .form-input {
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-base);
    border-radius: var(--radius-md);
    height: 48px;
}

.auth-form textarea.form-input {
    height: auto;
}

.auth-form .btn-primary {
    height: 48px;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-md);
    letter-spacing: 0.3px;
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Remember me + Forgot password row */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-6);
}

.auth-options a {
    font-size: var(--fs-sm);
    color: var(--clr-primary-600);
    font-weight: var(--fw-medium);
}

.auth-options a:hover {
    color: var(--clr-primary-800);
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    margin-top: var(--sp-8);
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--clr-gray-400);
}

/* === LEFT SIDE: Branding Panel === */
.auth-brand-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-12);
    background: linear-gradient(160deg, var(--clr-secondary-900) 0%, var(--clr-secondary-800) 40%, var(--clr-primary-900) 100%);
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.auth-brand-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 168, 150, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 168, 150, 0.06) 0%, transparent 50%);
}

/* Geometric decoration */
.auth-brand-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
}

.auth-brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--sp-8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.auth-brand-icon svg {
    width: 40px;
    height: 40px;
    color: var(--clr-primary-300);
}

.auth-brand-title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    color: var(--clr-white);
    margin-bottom: var(--sp-4);
    line-height: var(--lh-tight);
}

.auth-brand-description {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--sp-10);
}

/* Stats */
.auth-brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.auth-stat {
    text-align: center;
}

.auth-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-extrabold);
    color: var(--clr-primary-300);
    margin-bottom: var(--sp-1);
}

.auth-stat-label {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
}

/* Floating shapes decoration */
.auth-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    background: white;
}

.auth-shape-1 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
}

.auth-shape-2 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
}

.auth-shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .auth-brand-section {
        display: none;
    }

    .auth-form-section {
        padding: var(--sp-6);
    }

    .auth-page {
        background: linear-gradient(160deg, var(--clr-gray-50) 0%, var(--clr-white) 100%);
    }
}

@media (max-width: 480px) {
    .auth-form-section {
        padding: var(--sp-4);
    }

    .auth-form-container {
        max-width: 100%;
    }

    .auth-welcome h1 {
        font-size: var(--fs-xl);
    }
}

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

.auth-form-container {
    animation: fadeInUp 0.5s ease-out;
}

.auth-brand-content {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}
