/*
 * Login page styles.
 *
 * Loaded by templates/pages/login.html via {% block head %}.
 * Uses hex literals (not MD3 tokens) because login renders before
 * the user/session context that determines theme branding.
 */

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem 2.5rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(25, 30, 40, 0.06), 0 8px 32px rgba(25, 30, 40, 0.08);
}

.login-brand-mark {
    width: 56px;
    height: 56px;
    background: #2d4a8a;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #c06060;
    background: rgba(192, 96, 96, 0.06);
    border: 1px solid rgba(192, 96, 96, 0.15);
}

.login-input-group { position: relative; display: flex; align-items: center; }

.login-input {
    width: 100%;
    height: 56px;
    padding: 20px 48px 8px 16px;
    font-size: 0.9375rem;
    color: #2a2a35;
    background: #f7f8fa;
    border: 1.5px solid #dfe2e8;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}
.login-input:hover { border-color: #c5c8d0; }
.login-input:focus { border-color: #5070b8; box-shadow: 0 0 0 3px rgba(80, 112, 184, 0.12); background: #fff; }

.login-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: #6b6b78;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-input:focus + .login-label,
.login-input:not(:placeholder-shown) + .login-label {
    top: 14px; transform: translateY(0) scale(0.75); color: #5070b8; font-weight: 500;
}
.login-input:not(:focus):not(:placeholder-shown) + .login-label { color: #6b6b78; }

.login-eye-toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; min-height: 40px !important; min-width: 40px !important;
    display: flex; align-items: center; justify-content: center;
    color: #6b6b78; background: transparent; border: none; border-radius: 10px; cursor: pointer;
}
.login-eye-toggle:hover { color: var(--md-sys-color-on-surface-variant); background: rgba(0, 0, 0, 0.04); }

.login-submit {
    width: 100%;
    height: 52px;
    min-height: 52px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: #2d4a8a;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.login-submit:hover:not(:disabled) { background: #243d73; }
.login-submit:active:not(:disabled) { transform: scale(0.98) !important; }
.login-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.login-footer { margin-top: 2rem; font-size: 0.75rem; color: #6b6b78; letter-spacing: 0.04em; }

@media (max-width: 480px) {
    .login-card { padding: 2.5rem 1.75rem 2rem; border-radius: 16px; max-width: 100%; }
}
