/* Login Page - Light card with left banner */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.left-banner {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    z-index: 0;
}

.brand-block {
    color: #0c2a4d;
}

.brand-logo {
    width: 72px;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.brand-subtitle {
    font-size: 18px;
    line-height: 1.4;
    color: #0c2a4d;
    opacity: 0.9;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.login-box {
    width: 420px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(12, 42, 77, 0.25);
    overflow: hidden;
    border: 1px solid #e6eef6;
    /* Hard centering fallback to override any external layout issues */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-header {
    padding: 18px 22px;
    text-align: center;
    background: linear-gradient(180deg, #102b50 0%, #0b2344 100%);
    color: #fff;
}

.login-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.login-form {
    padding: 20px 22px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0c2a4d;
}

.form-group label i {
    color: #3b82f6;
    margin-right: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #0c2a4d;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #eef4ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.help-block {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

.has-error input {
    border-color: #dc2626;
    background-color: #fff5f5;
}

.action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.btn-login {
    flex: 1;
    padding: 10px 12px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.btn-login:hover {
    filter: brightness(1.05);
}

.btn-back {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    color: #0c2a4d;
    background-color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-back:hover {
    background-color: #f8fafc;
}

.support-links {
    margin-top: 10px;
}

.support-link {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
}

.support-link:hover {
    text-decoration: underline;
}

.login-footer {
    padding: 14px 22px;
    text-align: center;
    font-size: 12px;
    color: #66768b;
    background-color: #0b2344;
    border-top: 1px solid #0b2344;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .login-page {
        padding: 32px 16px;
    }
    .login-container {
        padding-right: 0;
        position: static;
        transform: none;
        z-index: auto;
    }
    .left-banner {
        position: static;
        justify-content: center;
        padding-left: 0;
        margin-bottom: 18px;
    }
    .login-box {
        position: static;
        transform: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}