/* ============================================
   NextBall - Auth Styles
   Login & Register screens
   Yeşil/Siyah Tema - Oyun UI ile uyumlu
   ============================================ */

/* Auth Screen - TAM EKRAN */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0f0a 0%, #0d1a0d 50%, #0a1510 100%);
    padding: 20px;
    overflow: hidden;
    z-index: 9999;
}

.auth-screen.hidden {
    display: none !important;
}

/* Animated Background Orbs */
.auth-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.auth-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3ecf8e 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.auth-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #2a9d5c 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* Auth Card */
.auth-card {
    background: rgba(13, 26, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(62, 207, 142, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(62, 207, 142, 0.1);
}

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

.auth-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-logo h1 span {
    color: #3ecf8e;
}

.auth-logo p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-tab.active {
    background: #3ecf8e;
    color: #0a0f0a;
}

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

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    padding: 14px 16px;
    border: 2px solid rgba(62, 207, 142, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3ecf8e;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(62, 207, 142, 0.15);
}

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

.form-input.error {
    border-color: #e74c3c;
}

/* Country Select */
.country-select {
    position: relative;
}

.country-select select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(62, 207, 142, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.country-select select:focus {
    outline: none;
    border-color: #3ecf8e;
}

.country-select select option {
    background: #0d1a0d;
    color: #fff;
}

.country-select::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    pointer-events: none;
    margin-top: 12px;
}

/* Submit Button */
.auth-submit {
    margin-top: 8px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3ecf8e 0%, #2a9d5c 100%);
    color: #0a0f0a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(62, 207, 142, 0.3);
}

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

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.auth-error {
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.auth-error.visible {
    display: block;
}

/* Success Message */
.auth-success {
    padding: 12px 16px;
    background: rgba(62, 207, 142, 0.15);
    border: 1px solid rgba(62, 207, 142, 0.3);
    border-radius: 8px;
    color: #3ecf8e;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.auth-success.visible {
    display: block;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(62, 207, 142, 0.2);
}

/* Guest Button */
.guest-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(62, 207, 142, 0.3);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-btn:hover {
    border-color: #3ecf8e;
    color: #3ecf8e;
    background: rgba(62, 207, 142, 0.1);
}

/* Password Strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.strength-bar.weak { background: #e74c3c; }
.strength-bar.medium { background: #f39c12; }
.strength-bar.strong { background: #3ecf8e; }

/* Remember Me */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3ecf8e;
    cursor: pointer;
}

.forgot-link {
    color: #3ecf8e;
    font-size: 0.9rem;
    text-decoration: none;
}

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

/* Loading Spinner */
.auth-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 15, 10, 0.3);
    border-radius: 50%;
    border-top-color: #0a0f0a;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Form Panels */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .auth-logo h1 {
        font-size: 2rem;
    }
}
