/* ==========================================
   LOGIN PORTAL STYLES
   LifeAgencyPro Financial Platform
   ========================================== */

/* ==========================================
   ROOT VARIABLES & RESET
   ========================================== */
:root {
    /* Navy Blue Palette */
    --navy-primary: #1B3B6F;
    --navy-dark: #132B4F;
    --navy-light: #2A4A7F;
    --navy-lighter: #3A5A9F;
    
    /* Gold Palette */
    --gold-primary: #D4AF37;
    --gold-dark: #B4952F;
    --gold-light: #E4C558;
    --gold-accent: #F4D878;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --error: #EF4444;
    --error-light: #FEE2E2;
    --success: #10B981;
    --success-light: #D1FAE5;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 50%, var(--navy-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   BACKGROUND DECORATION
   ========================================== */
.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    opacity: 0.1;
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ==========================================
   LOGIN CONTAINER
   ========================================== */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 100%);
}

/* ==========================================
   LOGO SECTION
   ========================================== */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section svg {
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.platform-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.platform-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    font-weight: 400;
}

/* ==========================================
   LOGIN FORM
   ========================================== */
.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.form-group input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(27, 59, 111, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* ==========================================
   FORM OPTIONS
   ========================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-600);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--navy-primary);
}

.forgot-password {
    font-size: 14px;
    color: var(--navy-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--navy-light);
}

/* ==========================================
   LOGIN BUTTON
   ========================================== */
.login-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 59, 111, 0.3);
    font-family: var(--font-primary);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 59, 111, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* ==========================================
   ERROR MESSAGE
   ========================================== */
.error-message {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--error-light);
    border: 1px solid var(--error);
    border-radius: 8px;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ==========================================
   LOGIN FOOTER
   ========================================== */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.login-footer p {
    font-size: 14px;
    color: var(--gray-600);
}

.login-footer a {
    color: var(--navy-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--navy-light);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 640px) {
    .login-container {
        padding: 16px;
    }
    
    .login-box {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .platform-title {
        font-size: 24px;
    }
    
    .platform-subtitle {
        font-size: 14px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .logo-section svg {
        width: 50px;
        height: 50px;
    }
    
    .platform-title {
        font-size: 22px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
