/* =============================================
   Authentication Pages Styles
   Dark Luxury Theme
   ============================================= */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #0a192f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    margin: 0;
}

.auth-logo p {
    color: #a8b2d1;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Card */
.auth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.social-btn.google {
    background: rgba(219, 68, 55, 0.1);
    border-color: rgba(219, 68, 55, 0.3);
}

.social-btn.google:hover {
    background: rgba(219, 68, 55, 0.2);
}

.social-btn.facebook {
    background: rgba(66, 103, 178, 0.1);
    border-color: rgba(66, 103, 178, 0.3);
}

.social-btn.facebook:hover {
    background: rgba(66, 103, 178, 0.2);
}

.social-btn i,
.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    color: #a8b2d1;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a8b2d1;
}

.form-group input {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input::placeholder {
    color: #5a6a8a;
}

.form-group input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

/* Hide native password toggle in Edge/IE */
.password-wrapper input::-ms-reveal,
.password-wrapper input::-ms-clear {
    display: none;
}

.password-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3rem;
    /* Matches input padding-right */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.password-toggle:hover {
    color: #d4af37;
}

/* Forgot password */
.forgot-link {
    text-align: right;
    margin-top: -0.5rem;
}

.forgot-link a {
    color: #d4af37;
    font-size: 0.875rem;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 0.5rem;
    color: #0a192f;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error message */
.auth-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ff6b6b;
    font-size: 0.875rem;
    display: none;
}

.auth-error.visible {
    display: block;
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #a8b2d1;
    font-size: 0.875rem;
}

.auth-footer a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Terms */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #d4af37;
}

.terms-checkbox label {
    font-size: 0.875rem;
    color: #8892b0;
    line-height: 1.4;
}

.terms-checkbox a {
    color: #d4af37;
}

/* Loading state */
.auth-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-loading.visible {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 25, 47, 0.3);
    border-top-color: #0a192f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        max-width: 380px;
    }

    .auth-card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-logo h1 {
        font-size: 1.75rem;
    }
}