/* Ensure no UA spacing leaks around the page */
html, body { margin: 0; height: 100%; background:#181818; }

.login-bg {
    min-height: 100vh;
    background: linear-gradient(to right, #181818, #23272a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.login-card {
    background: #23272a;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}
.login-title {
    text-align: center;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;    
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    color: #fff; /* Make field names white */
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: none; /* Remove border */
    border-radius: 6px;
    font-size: 1rem;
    background: #181818;
    color: #fff;
    transition: box-shadow 0.2s;
    box-shadow: 0 0 0 1.5px #444; /* Optional: subtle shadow for depth */
}
.form-control:focus {
    box-shadow: 0 0 0 2px #888; /* Grey glow on focus */
    outline: none;
}
.login-btn {
    width: 100%;
    padding: 12px 0;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.login-btn:disabled {
    background: #a33a3a;
    cursor: not-allowed;
}
.spinner, .spinner-lg {
    display: inline-block;
    border: 3px solid #444;
    border-top: 3px solid #e53935;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 5px;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(24,24,24,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.toast-error {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: #e53935;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.24);
    font-size: 1rem;
    z-index: 20;
    animation: fadein 0.3s;
}
@keyframes fadein {
    from { opacity: 0; transform: translateX(-50%) translateY(20px);}
    to { opacity: 1; transform: translateX(-50%) translateY(0);}
}