/* ============================================
   LOGIN PAGE - DARK BLUE THEME (GLOBAL AQUATRIX)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Segoe UI', 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0a2b4e 0%, #021526 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    display: flex;
    max-width: 1280px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-height: 600px;
}

/* ========== LEFT SECTION (FORM) ========== */
.login-form-section {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.login-form-wrapper {
    max-width: 440px;
    width: 100%;
}

/* Logo */
.login-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.logo-image {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0a2b4e 0%, #1e4a9a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0a2b4e;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #5a6e8a;
    font-size: 0.95rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e2f44;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: #1e4a9a;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #9aaec0;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.25s ease;
    background: #fefefe;
    outline: none;
    color: #0f2b3f;
}

.form-input:focus {
    border-color: #1e4a9a;
    box-shadow: 0 0 0 3px rgba(30, 74, 154, 0.2);
    background: white;
}

.form-input.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.input-wrapper.focused .input-icon {
    color: #1e4a9a;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #7c8ea0;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #1e4a9a;
}

/* Error message */
.error-message {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.5rem;
    background: #fee2e2;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #2d3a4b;
}

.remember-me input {
    accent-color: #0a2b4e;
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.forgot-password {
    font-size: 0.85rem;
    color: #1e4a9a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #0a2b4e;
    text-decoration: underline;
}

/* Login button */
.btn-login {
    width: 100%;
    background: linear-gradient(105deg, #0a2b4e 0%, #1e4a9a 100%);
    border: none;
    border-radius: 2rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 14px -6px rgba(10, 43, 78, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #072042 0%, #143d7c 100%);
    box-shadow: 0 12px 20px -8px rgba(10, 43, 78, 0.45);
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ========== RIGHT SECTION (DECORATIVE) ========== */
.login-decorative-section {
    flex: 1;
    background: linear-gradient(135deg, #0a2b4e 0%, #1e3a6f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.decorative-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 380px;
}

.decorative-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.decorative-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.features-list {
    text-align: left;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    padding: 1.2rem 1.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.feature-item i {
    font-size: 1.1rem;
    color: #ffde9c;
}

/* Decorative shapes */
.decorative-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.shape-2 {
    width: 180px;
    height: 180px;
    bottom: 20px;
    left: -70px;
    background: rgba(255,255,255,0.03);
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
}

.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 15%;
    background: rgba(255,215,0,0.08);
    filter: blur(30px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }
    .login-decorative-section {
        padding: 2rem 1.5rem;
    }
    .decorative-text h2 {
        font-size: 1.5rem;
    }
    .login-form-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 1.5rem;
    }
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}