.card {
    max-width: 420px;
    margin: 40px auto;
    background: rgba(10,20,50,0.85);
    border-radius: 18px;
    padding: 24px 22px 26px 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.card .sub {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: rgba(220,230,255,0.8);
}

label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(3,10,30,0.9);
    color: #f5f7ff;
    margin-bottom: 12px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #5fb3ff;
    box-shadow: 0 0 0 1px rgba(95,179,255,0.6);
}

.btn {
    width: 100%;
    padding: 11px 0;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #1e90ff, #0a66c2);
    color: white;
    font-size: 0.98rem;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.btn:hover {
    filter: brightness(1.05);
}

.signup-link {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #e6f0ff;
    text-align: center;
}

.signup-link a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

/*
.error-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4d4d;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 1;
    transition: opacity 1.5s ease;
    z-index: 9999;
}
*/

.login-wrapper {
    position: relative;
    width: fit-content;
    margin: 40px auto;
}

@keyframes shake {
    0%   { transform: translateX(-50%) translateY(0); }
    20%  { transform: translateX(calc(-50% - 8px)) translateY(0); }
    40%  { transform: translateX(calc(-50% + 8px)) translateY(0); }
    60%  { transform: translateX(calc(-50% - 6px)) translateY(0); }
    80%  { transform: translateX(calc(-50% + 6px)) translateY(0); }
    100% { transform: translateX(-50%) translateY(0); }
}

.error-modal {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 60, 60, 0.95);
    padding: 14px 22px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 10;
    opacity: 1;
    transition: opacity 1s ease;
    animation: shake 0.45s ease;

    /* NEW: make it wider */
    min-width: 320px;
    text-align: center;
}

