/* Glass-card login on a soft blue background */

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    padding: 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 45%, #93c5fd 100%);
    position: relative;
    overflow: hidden;
}

/* Soft blue blobs in the background for the glass card to refract */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

body::before {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -100px;
    background: rgba(59, 130, 246, 0.45);
}

body::after {
    width: 460px;
    height: 460px;
    bottom: -160px;
    right: -120px;
    background: rgba(96, 165, 250, 0.50);
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 40px 36px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    box-shadow:
        0 8px 32px rgba(30, 64, 175, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-align: left;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    letter-spacing: -0.01em;
}

.login-subtitle {
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
    margin: 0 0 30px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    margin: 0 0 6px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    margin: 0 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    input[type="text"]::placeholder,
    input[type="password"]::placeholder {
        color: #64748b;
    }

    input[type="text"]:focus,
    input[type="password"]:focus {
        outline: none;
        border-color: #2563eb;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    }

button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

    button[type="submit"]:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
    }

    button[type="submit"]:active {
        transform: translateY(0);
    }

.error-message {
    background: rgba(254, 226, 226, 0.85);
    color: #b91c1c;
    border: 1px solid rgba(252, 165, 165, 0.7);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin: 0 0 16px;
    backdrop-filter: blur(8px);
}

a {
    color: #1d4ed8;
    text-decoration: none;
    font-size: 0.85rem;
}

    a:hover {
        text-decoration: underline;
    }
