.auth-form {
    max-width: 420px;
    margin: 60px auto;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-in-out;
}

.auth-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form form div {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: #00aef0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
}

.auth-form button[type="submit"] {
    background-color: var(--button-color);
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-form button[type="submit"]:hover {
    filter: drop-shadow(4px 4px 5px rgba(0, 0, 0, 0.25));
}

.auth-form button[type="submit"]:focus {
    background-color: var(--button-hover);
}


.alert.alert-danger {
    background-color: #ffe6e6;
    border-left: 4px solid #e53935;
    color: #b71c1c;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    animation: shake 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@media (max-width: 480px) {
    .auth-form {
        margin: 40px 20px;
        padding: 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .auth-form input,
    .auth-form button {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }
}
