/* Auth Pages - Home Style */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.15) 0%, rgba(5, 5, 5, 1) 50%),
                linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    padding: 20px;
}

/* Background Effects (same as home) */
.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

/* Floating Orbs */
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-orbs::before,
.floating-orbs::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.floating-orbs::before {
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
    animation: float-slow 25s ease-in-out infinite;
}

.floating-orbs::after {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
    animation: float-slow 30s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Back to Home */
.back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-home:hover {
    color: #8B5CF6;
    transform: translateX(-5px);
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Card Glow */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

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

.auth-logo img {
    height: 50px;
    width: auto;
}

/* Title */
.auth-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.1;
}

.auth-subtitle {
    color: #9ca3af;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ef4444;
    font-size: 0.9rem;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    padding: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
    color: #f3f4f6;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.social-btn.discord:hover {
    background: #4752C4;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.social-btn.google {
    background: white;
    border-color: #dadce0;
    color: #3c4043;
}

.social-btn.google:hover {
    background: #f8f9fa;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 25px);
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
}

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

/* Input Fields */
.input-field {
    position: relative;
}

.input-field i:not(.toggle-pass i) {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.9rem;
    pointer-events: none;
}

.input-field input {
    width: 100%;
    padding: 12px 40px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: #f3f4f6;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Password fields need extra padding for eye icon */
.input-field:has(input[type="password"]) input,
.input-field input[type="password"] {
    padding-right: 40px;
}

.input-field input::placeholder {
    color: #6b7280;
}

.input-field input:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Password Toggle */
.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.toggle-pass:hover {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.toggle-pass:focus {
    outline: none;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.form-options.single {
    justify-content: center;
}

.remember,
.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Custom styled checkbox for remember me */
.remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.remember input[type="checkbox"]:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.05);
}

.remember input[type="checkbox"]:checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
}

.remember input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.remember input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.terms input {
    width: 16px;
    height: 16px;
    accent-color: #8B5CF6;
    cursor: pointer;
}

/* Custom checkbox styling for terms */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.terms-checkbox:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.25);
}

/* Custom Checkbox Design */
.terms-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.05);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 1px;
}

.terms-checkbox input[type="checkbox"]:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.terms-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #8B5CF6, #7c3aed);
    border-color: #8B5CF6;
}

.terms-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.terms-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.terms-checkbox label {
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.terms-checkbox a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.forgot {
    color: #8B5CF6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot:hover {
    color: #a78bfa;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 13px;
    background: #8B5CF6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.submit-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.auth-footer p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.auth-footer a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

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

/* Custom Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.25);
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.radio-option input[type="radio"]:checked {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #7c3aed);
}

.radio-option input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.radio-option label {
    color: #f3f4f6;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.radio-option.selected {
    background: rgba(139, 92, 246, 0.08);
    border-color: #8B5CF6;
}
@media (max-width: 480px) {
    .back-home {
        top: 20px;
        left: 20px;
        font-size: 0.85rem;
    }
    
    .auth-card {
        padding: 40px 25px;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .input-field input {
        padding: 12px 40px;
        font-size: 0.9rem;
    }
}