/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   LEFT PANEL - BRANDING
   ============================================ */

.login-brand-panel {
    flex: 0 0 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0d3344 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.brand-content {
    text-align: center;
    z-index: 2;
    color: #ffffff;
}

.brand-logo {
    max-width: 280px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Decorative Elements */
.brand-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    right: 10%;
}

/* ============================================
   RIGHT PANEL - FORM
   ============================================ */

.login-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-secondary);
    transition: background-color var(--transition-normal);
}

.mobile-logo {
    margin-bottom: 32px;
    margin-top: -40px;
}

.mobile-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-header {
    margin-bottom: 32px;
    text-align: center;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.login-form .form-floating {
    position: relative;
}

.login-form .form-control {
    height: 56px;
    padding: 16px;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.login-form .form-control:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 4px rgba(2, 111, 161, 0.1);
}

.login-form .form-floating>label {
    padding: 16px;
    color: var(--text-muted);
}

.login-form .form-floating>.form-control:focus~label,
.login-form .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--brand-secondary);
}

/* Password Toggle */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    z-index: 5;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Form Options */
.form-options {
    font-size: 0.9rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--input-border);
    background-color: var(--input-bg);
}

.form-check-input:checked {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

.form-check-label {
    color: var(--text-secondary);
    margin-left: 4px;
}

.forgot-link {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    height: 52px;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(2, 111, 161, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 111, 161, 0.4);
    background: linear-gradient(135deg, #0380b8 0%, #1a5d74 100%);
    color: #ffffff;
}

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

/* Alert Styles */
.login-form .alert {
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    padding: 14px 16px;
    margin-bottom: 20px;
    animation: shake-horizontal 0.6s ease;
}

.login-form .alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
}

[data-theme="dark"] .login-form .alert-danger {
    background-color: rgba(220, 38, 38, 0.15);
}

@keyframes shake-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70% {
        transform: translateX(-8px);
    }

    20%,
    40%,
    60% {
        transform: translateX(8px);
    }

    80% {
        transform: translateX(6px);
    }

    90% {
        transform: translateX(-6px);
    }
}

/* Footer */
.login-footer {
    margin-top: 40px;
    text-align: center;
}

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

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

    .login-form-panel {
        padding: 60px 24px 40px;
    }

    .login-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .login-theme-toggle {
        top: 12px;
        right: 12px;
    }

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

    .login-form-panel {
        padding: 50px 20px 30px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .mobile-logo img {
        width: 80px;
        height: 80px;
    }
}