/* Styles for Login.aspx */

:root {
    --ink: #1f2937;
    --muted: #6b7280;
    --border: #dbe3ef;
    --surface: #ffffff;
    --accent: #0b4c8a;
    --accent-hover: #0a3f6b;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #ffffff 0%, #f4f6fb 45%, #eef1f7 100%);
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -160px;
    background: radial-gradient(circle, rgba(11, 76, 138, 0.18) 0%, rgba(11, 76, 138, 0) 70%);
    pointer-events: none;
}

.login-card {
    width: 420px;
    padding: 34px 36px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    animation: fadeIn 0.7s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.brand-logo {
    max-width: 190px;
    height: auto;
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #0f172a;
}

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

.form-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-control {
    height: 46px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 14px;
    padding: 10px 14px;
}

.form-control:focus {
    background: #ffffff;
    border-color: rgba(11, 76, 138, 0.55);
    box-shadow: 0 0 0 3px rgba(11, 76, 138, 0.15);
}

.btn-login {
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    background: var(--accent);
    color: #ffffff;
    border-radius: 10px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-login:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(11, 76, 138, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #9aa3b2;
}

/* Error shake */
@keyframes shakeAnim {
    0% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

.shake { animation: shakeAnim 0.5s ease; }

/* Loader */
#loadingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-circle {
    width: 72px;
    height: 72px;
    border: 6px solid rgba(255, 255, 255, 0.55);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite !important;
    background: transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .login-card {
        width: 92vw;
        padding: 28px 24px;
    }

    .brand-logo {
        max-width: 160px;
    }
}
