body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
}

input[type=email], input[type=password] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input[type=submit] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #0056b3;
}

#flash-messages .flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    animation: fadeIn 0.5s ease-out;
}

#flash-messages .flash-message.danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

#flash-messages .flash-message .fas {
    font-size: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Lockout Countdown Block ── */
#rate-limit-message {
    all: unset;
    display: block;
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    animation: lockSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lockSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

#rate-limit-message .lock-inner {
    padding: 20px 20px 16px;
    text-align: center;
}

#rate-limit-message .lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59,130,246,0.15);
    margin-bottom: 10px;
}

#rate-limit-message .lock-icon .fas {
    font-size: 15px;
    color: #3b82f6;
}

#rate-limit-message .lock-label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

#rate-limit-message .lock-digits {
    font-family: 'Courier New', Courier, monospace;
    font-size: 42px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
    letter-spacing: 0.04em;
    line-height: 1;
    display: block;
    transition: opacity 0.08s ease, transform 0.08s ease;
}

#rate-limit-message .lock-digits.tick {
    opacity: 0;
    transform: scale(0.94);
}

#rate-limit-message .lock-sub {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #475569;
    margin-top: 8px;
}

#rate-limit-message .lock-progress-track {
    height: 3px;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

#rate-limit-message .lock-progress-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    transform-origin: left;
    transition: transform 1s linear;
}
