/* Authentication Page Styles */

.auth-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
}

.auth-container {
    padding: 6rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.auth-box {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(26, 31, 58, 0.95);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-family: 'Special Elite', cursive;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab.active {
    color: var(--accent-gold);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
}

.auth-tab:hover {
    color: var(--text-light);
}

/* Form Container */
.auth-form-container {
    display: none;
}

.auth-form-container.active {
    display: block;
}

/* Form Styles */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group label i {
    color: var(--accent-gold);
    margin-right: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: var(--text-dim);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.link-button {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.link-button:hover {
    color: var(--text-light);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c99f3a 100%);
    border: none;
    border-radius: 5px;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    color: var(--text-dim);
    background: rgba(26, 31, 58, 0.95);
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* Social Auth Buttons */
.social-auth-btn {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    background: rgba(10, 14, 39, 0.6);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-auth-btn:hover {
    background: rgba(10, 14, 39, 0.8);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.social-auth-btn.google {
    border-color: #4285f4;
}

.social-auth-btn.google:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
}

.social-auth-btn i {
    font-size: 1.2rem;
}

/* Error and Success Messages */
.auth-error,
.auth-success {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
    font-size: 0.9rem;
}

.auth-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.auth-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
}

.auth-error.show,
.auth-success.show {
    display: block;
}

/* Password Reset Modal */
.password-reset-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content-small {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-content-small h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: 'Special Elite', cursive;
}

.modal-content-small p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-gold);
}

/* Features List */
.auth-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-features h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-features h3 i {
    color: var(--accent-gold);
    margin-right: 0.5rem;
}

.auth-features ul {
    list-style: none;
    padding: 0;
}

.auth-features li {
    color: var(--text-dim);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.auth-features li i {
    color: var(--accent-gold);
    margin-right: 0.75rem;
}

/* Loading State */
.auth-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-dark);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-box {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-header i {
        font-size: 2.5rem;
    }
}
