.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.auth-header {
    background: linear-gradient(135deg, #cab078 0%, #a58a61 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
}

.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

.auth-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: none;
    border: none;
    outline: none;
    font-size: 0.95rem;
    position: relative;
}

.auth-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #d4af37;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-tab:hover {
    color: #d4af37;
}

.auth-tab.active {
    color: #cab078;
}

.auth-tab.active::after {
    background: #cab078;
    transform: scaleX(1);
}

.auth-forms {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    transition: min-height 0.3s ease;
    padding: 0 1.5rem;
}

.auth-form {
    position: absolute;
    width: 100%;
    padding: 2rem;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    position: relative;
    pointer-events: all;
}

.form-group {
    margin: 0;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.form-control:hover {
    border-color: #bbb;
}

.form-control:focus {
    border-color: #cab078;
    box-shadow: 0 0 0 3px rgba(202, 176, 120, 0.15);
    outline: none;
}

.form-control.error {
    border-color: #e74c3c;
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.error-message,
.success-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.error-message {
    background: #fff3f3;
    color: #e74c3c;
}

.success-message {
    background: #f0fff4;
    color: #38a169;
}

.error-message i,
.success-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    background: #cab078;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-auth:hover {
    background: #a58a61;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 138, 97, 0.2);
}

.btn-auth:active {
    transform: translateY(1px);
}

.btn-auth.loading {
    color: transparent;
}

.btn-auth.loading::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #333;
}

.auth-footer {
    text-align: center;
    padding: 1rem 0 0;
    color: #666;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.auth-footer a {
    color: #cab078;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #a58a61;
    text-decoration: underline;
}

.social-login {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.social-login-title {
    text-align: center;
    color: #666;
    margin-bottom: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.social-login-title::before,
.social-login-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #eee;
}

.social-login-title::before { left: 0; }
.social-login-title::after { right: 0; }

.social-buttons {
    display: flex;
    gap: 1rem;
}

.btn-social {
    flex: 1;
    padding: 0.75rem;
    border: 1.5px solid #ddd;
    border-radius: 0.5rem;
    background: #fff;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
}

.btn-social:active {
    transform: translateY(1px);
}

.btn-social i {
    font-size: 1.1rem;
}

.btn-social.google {
    color: #ea4335;
    border-color: #ea4335;
}

.btn-social.google:hover {
    background: rgba(234, 67, 53, 0.05);
}

.btn-social.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.btn-social.facebook:hover {
    background: rgba(24, 119, 242, 0.05);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
        min-height: calc(100vh - 100px);
    }

    .auth-card {
        border-radius: 0.75rem;
        margin: 0.5rem;
    }

    .auth-header {
        padding: 1.5rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .social-buttons {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
    }
}

