/* Auth Section */
.auth-section {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(233, 30, 99, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(155, 89, 182, 0.2);
    position: relative;
    z-index: 1;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: rgba(15, 15, 30, 0.6);
    padding: 0.5rem;
    border-radius: 15px;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(155, 89, 182, 0.1);
}

.auth-tab.active {
    background: linear-gradient(135deg, #9b59b6, #e91e63);
    color: white;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header i {
    font-size: 4rem;
    background: linear-gradient(135deg, #9b59b6, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Form Container */
.auth-form-container {
    animation: fadeIn 0.5s ease;
}

.auth-form-container.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 15, 30, 0.6);
    border: 2px solid rgba(155, 89, 182, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 15, 30, 0.8);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3.5rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #e74c3c;
    transition: all 0.3s ease;
}

.strength-bar.weak::after {
    width: 33%;
    background: #e74c3c;
}

.strength-bar.medium::after {
    width: 66%;
    background: #f39c12;
}

.strength-bar.strong::after {
    width: 100%;
    background: #27ae60;
}

.strength-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    min-width: 70px;
}

/* Error Messages */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--secondary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-auth:hover::before {
    width: 400px;
    height: 400px;
}

.btn-auth i {
    margin-right: 0.5rem;
}

/* Social Login */
.social-login {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-login p {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    padding: 1rem;
    background: rgba(15, 15, 30, 0.6);
    border: 2px solid rgba(155, 89, 182, 0.2);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-google:hover {
    background: linear-gradient(135deg, #DB4437, #F4B400);
    border-color: #DB4437;
}

.btn-discord:hover {
    background: #5865F2;
    border-color: #5865F2;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 100px 1rem 2rem;
    }

    .auth-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

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

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

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

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

    .auth-tabs {
        gap: 0.5rem;
    }

    .auth-tab {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}
