:root {
    --primary-color: #04234B;
    --primary-light: #0b2b61;
    --accent-color: #00B5E2;
    --bg-light: #f5f7fb;
    --font-outfit: 'Outfit', sans-serif;
}

body.login-page {
    background-color: var(--bg-light);
    font-family: var(--font-outfit), 'Segoe UI', sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    zoom: 1 !important; /* Override global style.css zoom */
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(4, 35, 75, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    height: 54px;
}

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

.login-header-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.login-header-section p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Styled Inputs */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    margin-bottom: 6px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.input-icon-wrapper .form-control {
    padding-left: 40px;
    padding-right: 44px;
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
}

.input-icon-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 35, 75, 0.1);
    outline: none;
}

/* Password Toggle Icon */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

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

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.btn-signin {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(4, 35, 75, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
}

.btn-signin:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, #03152d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(4, 35, 75, 0.2);
}

.btn-signin:active {
    transform: translateY(1px);
}

.btn-signin:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Alert styles */
.auth-alert {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
}

.auth-alert-danger {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1.5px solid rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.auth-alert-info {
    background-color: rgba(0, 181, 226, 0.08);
    border: 1.5px solid rgba(0, 181, 226, 0.15);
    color: #0369a1;
}

.auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #94a3b8;
}
