/* =====================================================
   🎨 LOGIN PAGE - Modern Split Design
   ===================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* =====================================================
   LEFT SIDE - BRANDED SECTION
   ===================================================== */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #ff006e 0%, #d946ef 25%, #f72585 50%, #fb5607 75%, #ffb703 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.8s ease 0.1s both;
}

.login-left h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: slideInUp 0.8s ease 0.2s both;
}

.login-left p {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease 0.3s both;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    animation: slideInUp 0.8s ease 0.4s both;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.feature-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   RIGHT SIDE - LOGIN FORM
   ===================================================== */

.login-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1f2937;
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-form-container {
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #d946ef;
    background: white;
    color: #1f2937;
    box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.1);
}

.form-group input::placeholder {
    color: #d1d5db;
}

/* Remember Me */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me-checkbox {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #d946ef;
}

.remember-me label {
    cursor: pointer;
    margin: 0;
    color: #4b5563;
}

.forgot-password a {
    color: #d946ef;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.forgot-password a:hover {
    color: #ff006e;
}

/* Messages */
.error-message,
.success-message {
    display: none;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.success-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #d946ef 0%, #ff006e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.4);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Footer */
.login-footer {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.login-footer p {
    margin-bottom: 8px;
}

.login-footer a {
    color: #d946ef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #ff006e;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 30px;
        min-height: 300px;
    }

    .login-left h2 {
        font-size: 28px;
    }

    .login-left p {
        font-size: 14px;
    }

    .login-features {
        display: none;
    }

    .login-right {
        padding: 40px 30px;
        min-height: auto;
    }

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

@media (max-width: 480px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        padding: 30px 20px;
        min-height: 250px;
    }

    .login-left h2 {
        font-size: 24px;
    }

    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .login-right {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .login-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* =====================================================
   ANIMATIONS & TRANSITIONS
   ===================================================== */

.form-group input {
    animation: slideInUp 0.6s ease both;
}

.form-group:nth-child(1) input { animation-delay: 0.1s; }
.form-group:nth-child(2) input { animation-delay: 0.2s; }
.remember-me { animation: slideInUp 0.6s ease 0.3s both; }
.login-btn { animation: slideInUp 0.6s ease 0.4s both; }
.login-footer { animation: slideInUp 0.6s ease 0.5s both; }

/* =====================================================
   DARK MODE (future)
   ===================================================== */

@media (prefers-color-scheme: dark) {
    .login-right {
        background: #1f2937 !important;
    }

    .form-header h1 {
        color: #f3f4f6;
    }

    .form-group label {
        color: #e5e7eb;
    }

    .form-group input {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }

    .form-group input::placeholder {
        color: #6b7280;
    }

    .login-footer {
        color: #9ca3af;
        border-top-color: #4b5563;
    }

    .remember-me label {
        color: #d1d5db;
    }
}
