/* =========================================
   PREMIUM LOGIN PAGE — Mobile First
   ========================================= */

:root {
    /* Brand Colors */
    --primary: #E75480;
    --primary-dark: #C93B6F;
    --primary-light: #F7A9C4;
    --accent: #C93B6F;

    /* Background Gradient */
    --bg-gradient-1: #F06A95;
    --bg-gradient-2: #C93B6F;

    /* Text */
    --text-dark: #2C2C2C;
    --text-muted: #666666;

    /* Borders */
    --border-color: #F3D6DE;

    /* Status */
    --success: #4CAF8A;
    --danger: #E57373;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(201, 59, 111, 0.08);
    --shadow-md: 0 8px 24px rgba(201, 59, 111, 0.12);
    --shadow-lg: 0 20px 60px rgba(201, 59, 111, 0.18);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   LAYOUT WRAPPER
   ========================================= */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* =========================================
   BRAND PANEL (Desktop Only)
   ========================================= */
.brand-panel {
    display: none;
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    animation: floatIn 0.8s ease-out;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: slideUp 0.8s ease-out 0.1s both;
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideUp 0.8s ease-out 0.3s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--accent);
}

/* Decorative Circles */
.brand-decoration {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: pulse 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -80px;
    animation: pulse 10s ease-in-out infinite 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation: pulse 12s ease-in-out infinite 4s;
}

/* =========================================
   FORM PANEL
   ========================================= */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    min-height: 100vh;
}

.form-container {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Brand */
.mobile-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.mobile-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
.form-floating-group {
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    height: 56px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 1rem 0.75rem 0.25rem 2.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-floating > .form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-floating > label {
    padding-left: 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Input Icons (positioned via padding) */
.form-floating label i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.form-floating:focus-within label i {
    color: var(--primary);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 5;
    border-radius: 50%;
    transition: all 0.2s;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================================
   CONTINUE AS SECTION
   ========================================= */
.continue-as-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(245, 158, 11, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.section-divider {
    text-align: center;
    position: relative;
    margin-bottom: 1rem;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.section-divider span {
    position: relative;
    background: white;
    padding: 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-as-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.continue-as-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.continue-as-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.03);
    transform: translateX(3px);
}

.continue-as-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.continue-as-info {
    flex: 1;
    min-width: 0;
}

.continue-as-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-as-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-as-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* =========================================
   FORM FOOTER
   ========================================= */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   ALERTS
   ========================================= */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* =========================================
   RESPONSIVE — TABLET (768px+)
   ========================================= */
@media (min-width: 768px) {
    .form-panel {
        padding: 2rem;
    }
    
    .form-container {
        max-width: 440px;
    }
    
    .form-header h3 {
        font-size: 1.75rem;
    }
}

/* =========================================
   RESPONSIVE — DESKTOP (1024px+)
   ========================================= */
@media (min-width: 1024px) {
    .brand-panel {
        display: flex;
    }
    
    .mobile-brand {
        display: none;
    }
    
    .form-panel {
        padding: 3rem;
    }
    
    .form-container {
        max-width: 460px;
    }
    
    .form-header h3 {
        font-size: 2rem;
    }
}

/* =========================================
   RESPONSIVE — LARGE DESKTOP (1280px+)
   ========================================= */
@media (min-width: 1280px) {
    .brand-panel {
        flex: 0 0 50%;
        padding: 4rem;
    }
    
    .brand-title {
        font-size: 3rem;
    }
    
    .brand-subtitle {
        font-size: 1.2rem;
    }
}

/* =========================================
   ACCESSIBILITY — Reduced Motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   DARK MODE SUPPORT (Optional)
   ========================================= */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable auto dark mode */
    /*
    body { background: #0f172a; color: #f1f5f9; }
    .form-panel { background: #1e293b; }
    ...
    */
}