.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.alert-warning {
    background-color: #fef9c3;
    border: 1px solid #fef08a;
    color: #ca8a04;
}

.alert-info {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-card {
    background: color-mix(in srgb, var(--card-bg) 60%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
}

.input-group .toggle-password {
    left: auto;
    right: 1rem;
    cursor: pointer;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 2.5rem;
    border: 1px solid var(--shadow-color);
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Updated button styling to match withdraw.css */
.auth-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.2);
}

.auth-btn:active {
    transform: translateY(0);
}

.button-group {
    margin-top: 1rem;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--shadow-color);
}

.auth-separator span {
    padding: 0 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.google {
    background-color: #DB4437;
    color: white;
}

.social-btn.facebook {
    background-color: #4267B2;
    color: white;
}

.auth-redirect {
    text-align: center;
    font-size: 0.9rem;
}

.auth-redirect a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.auth-redirect a:hover {
    text-decoration: underline;
}

/* Error states */
.input-error {
    border-color: var(--error-color) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Dark mode adjustments */
.dark-mode .auth-card {
    background: color-mix(in srgb, var(--card-bg) 60%, transparent);
    border-color: color-mix(in srgb, var(--text-color) 10%, transparent);
}

.policy-link {
    color: var(--tag-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 1rem;
    transition: color 0.2s ease-in-out;
}

.policy-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.policy-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.dark-mode .input-group input {
    background-color: var(--bg-color);
    border-color: var(--shadow-color);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .policy-link:last-child {
        margin-right: 0;
    }
}