.auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 32px 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    animation: fadeSlideUp 0.4s ease-out;
    transition: box-shadow 0.3s ease;
}

.auth-container:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    text-align: center;
    margin-bottom: 28px;
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.auth-form .form-field {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.auth-form input:hover:not(:focus) {
    border-color: #cbd5e1;
    background: #ffffff;
}

.auth-form input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.auth-button {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    cursor: pointer;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.auth-button:hover {
    background: linear-gradient(145deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.auth-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    color: #475569;
}

.auth-switch a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.2s, text-decoration 0.2s;
}

.auth-switch a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-messages {
    margin-bottom: 18px;
}

.auth-message {
    color: #dc2626;
    text-align: left;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 0;
    animation: shake 0.3s ease-in-out;
    padding-left: 4px;
}

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

.auth-form input.error {
    border-color: #f87171;
}

@media (max-width: 480px) {
    .auth-container {
        margin: 30px 16px;
        padding: 24px 20px;
    }
    .auth-title {
        font-size: 24px;
    }
}