/* Auth Pages Styling */
:root {
    --primary: #000000;
    --secondary: #000000;
    --accent: #00ffff;
    --text: #ffffff;
    --text-dim: #aaaaaa;
    --border: #00ffff;
    --border-thin: 1px solid #00ffff;
    --border-thick: 2px solid #00ffff;
    --error: #ff3366;
    --success: #00ff88;
    --warning: #ffaa00;
}

/* Auth Section */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    min-height: 100vh;
    position: relative;
}

.auth-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: var(--border-thin);
    padding-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 15px 30px;
    background: transparent;
    border: var(--border-thin);
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-tab:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.auth-tab:hover:before {
    left: 100%;
}

.auth-tab:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.auth-tab.active {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.5s ease;
}


.auth-form.active {
    display: block;
}


.auth-form.active.leave {
    animation: fadeOut 0.5s ease;
    visibility: hidden;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.auth-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text);
    text-align: center;
    text-transform: uppercase;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    background: transparent;
    border: var(--border-thin);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 255, 255, 0.02);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(170, 170, 170, 0.3);
}

.form-icon {
    position: absolute;
    right: 15px;
    bottom: 16px;
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.7;
    /*transition: all 0.3s ease;*/
    pointer-events: none;
}

.form-input:focus + .form-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-bar.weak {
    width: 33.33%;
    background: var(--error);
}

.strength-bar.medium {
    width: 66.66%;
    background: var(--warning);
}

.strength-bar.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--text-dim);
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent;
    border: var(--border-thin);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.checkbox-input:checked ~ .checkbox-custom {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkbox-input:checked ~ .checkbox-custom:after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 12px;
}

.checkbox-label {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.forgot-password:hover:after {
    width: 100%;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: var(--border-thick);
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.auth-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-btn:hover:before {
    left: 100%;
}

.auth-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.auth-divider:before,
.auth-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 100px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-divider:before {
    left: 0;
}

.auth-divider:after {
    right: 0;
}

.auth-divider span {
    background: var(--primary);
    padding: 0 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Social Auth */
.social-auth {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: var(--border-thin);
    color: var(--text-dim);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-auth-btn i {
    color: var(--accent);
    transition: all 0.3s ease;
}

.social-auth-btn:hover {
    background-color: rgba(0, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

.social-auth-btn:hover i {
    transform: scale(1.2);
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-switch a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.auth-switch a:hover:after {
    width: 100%;
}

/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 25px;
}

.terms-link {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Error and Success States */
.form-input.error {
    border-color: var(--error);
    animation: shake 0.5s ease;
}

.error {
    border-color: var(--error);
    animation: shake 0.5s ease;
}

.form-input.success {
    border-color: var(--success);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loading State */
.auth-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.auth-btn.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 120px 0 60px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .social-auth {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        width: 100%;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}