/* Login page styling moved out of inline page CSS so CSP allows the page to render.
   This file is intentionally loaded from the same origin and does not require unsafe-inline. */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="50" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="90" cy="30" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.login-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.login-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    opacity: 0.88;
}

.login-body {
    padding: 2rem;
}

.login-body .form-floating {
    margin-bottom: 1rem;
}

.btn-login {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-weight: 700;
    background: #4e73df;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
}

.btn-login:hover,
.btn-login:focus {
    background: #3b5cd8;
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #4e73df;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.login-footer {
    background: #f8f9ff;
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    color: #6c757d;
}

.login-footer .bi {
    margin-right: 0.35rem;
}

.login-card .alert {
    margin-bottom: 1rem;
}
