:root {
    --primary: #0A2A3B;
    --secondary: #00e0b8;
    --accent: #D35400;
    --text-color: #1e2a2f;
    --muted-text: #7a7a7a;
    --bg-light: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* ========== CONTAINER ========== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ========== CARD ========== */
.login-card {
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.5s ease;
}

/* ========== HEADER ========== */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header img {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.login-header h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ========== FORM ELEMENTS ========== */
input.form-control {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    background: #fff;
    color: var(--text-color);
}

input.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(0, 224, 184, 0.25);
}

/* ========== BUTTONS ========== */
.btn-primary {
    background-color: var(--primary);
    border: none;
    font-weight: 600;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #094055;
}

.btn-outline-secondary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
    border-radius: 0.5rem;
}

.btn-outline-secondary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ========== ALERTS ========== */
.alert {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

/* ========== LINKS ========== */
a.btn-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

a.btn-link:hover {
    text-decoration: underline;
}

/* ========== TEXT ========== */
.text-muted {
    color: var(--muted-text) !important;
}

.text-small {
    font-size: 0.875rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.loader-overlay {
    text-align: center;
    color: #0A2A3B;
}

.loader-circle {
    width: 40px;
    height: 40px;
    border: 4px solid #0A2A3B;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* small banner for existing users */
.have-account-banner {
    display: block;
    text-align: center;
}

.have-account-banner a {
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
}

.have-account-banner a:hover {
    text-decoration: underline;
}
.login-header img {width: 90px;}
@media(max-width:480px){.login-card{padding:2rem 1.25rem;}}
