/* login.css - Premium Styles for KSA GWR Login Portal */

:root {
    --primary-color: #15803d; /* green-700 */
    --primary-hover: #166534; /* green-800 */
    --text-main: #0f172a; /* slate-900 */
    --text-muted: #64748b; /* slate-500 */
    --error-bg: rgba(254, 226, 226, 0.9);
    --error-text: #b91c1c;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.login-card {
    position: relative;
    z-index: 10;
    backdrop-filter: blur(4px);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.flex-center {
    display: flex;
    justify-content: center;
}

.logo {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.error-box {
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), #16a34a);
    color: #fff;
    border: none;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(21, 128, 61, 0.3);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: linear-gradient(to right, var(--primary-hover), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -3px rgba(21, 128, 61, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.footer-text {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
    #bg-video { display: none; }
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
}
