﻿/* Auth Pages - Modern Login & Register Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0b14;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #FF6B6B;
    --background: #0a0b14;
    --surface: #151725;
    --text: #ffffff;
    --text-secondary: #8a8f98;
    --gradient: linear-gradient(45deg, var(--primary), var(--secondary));
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 242, 254, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-box {
    background: var(--surface);
    border-radius: 24px;
    padding: 60px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.1);
    animation: slideUp 0.6s ease;
    position: relative;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: 24px 24px 0 0;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent);
    border-color: rgba(255, 107, 107, 0.3);
}

.alert-success {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border-color: rgba(0, 242, 254, 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--primary);
}

.form-input {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

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

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
    padding: 5px;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

.auth-btn {
    padding: 16px 32px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
}

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

/* Discord Login Button */
.discord-login-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    text-decoration: none;
}

.discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #7289DA, #8B9FDE);
}

.discord-login-btn i {
    font-size: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--secondary);
}

/* Form Hint */
.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: -4px;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.auth-divider span {
    padding: 0 16px;
}

/* Social Auth Buttons */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.social-btn i {
    font-size: 20px;
}

/* Google Button */
.social-btn.google {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #444;
    border: 2px solid #e0e0e0;
}

.social-btn.google:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.google i {
    background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Discord Button */
.social-btn.discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    border: 2px solid #5865f2;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.social-btn.discord:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c45a5 100%);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.social-btn.discord i {
    font-size: 22px;
}

/* Checkbox Label için özel stil */
.checkbox-label span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.checkbox-label .auth-link {
    font-size: 13px;
}

@media (max-width: 768px) {
    .auth-box {
        padding: 40px 30px;
    }
    
    .auth-container {
        padding: 100px 15px 30px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 26px;
    }
    
    .auth-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}
