﻿/* =============================================
   BoofGame - Authentication Pages Styles
   Register & Login with Modern Design
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    font-family: 'YekanBakhFaNum', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #141319;
    color: #ffffff;
    min-height: 100vh;
    direction: rtl;
}

/* =============================================
   Auth Wrapper & Background
   ============================================= */
.auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
    isolation: isolate;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(33, 228, 249, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(253, 40, 146, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
    transform: translateZ(0);
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* =============================================
   Auth Container
   ============================================= */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    text-decoration: none;
}

.auth-logo h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #21e4f9 0%, #fd2892 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.auth-logo p {
    font-size: 14px;
    color: #21e4f9;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* =============================================
   Auth Card
   ============================================= */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(33, 228, 249, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(33, 228, 249, 0.03), transparent);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   Auth Steps
   ============================================= */
.auth-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
    position: relative;
    z-index: 1;
}

.auth-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header i {
    font-size: 52px;
    color: #21e4f9;
    margin-bottom: 15px;
    display: block;
}

.step-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.step-header p {
    font-size: 15px;
    color: #a0a0a0;
}

.phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(33, 228, 249, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(33, 228, 249, 0.3);
}

.phone-display i {
    font-size: 20px;
    color: #21e4f9;
}

.phone-display span {
    font-size: 16px;
    font-weight: 600;
    color: #21e4f9;
    direction: ltr;
}

.phone-display .edit-phone {
    color: #fd2892;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-display .edit-phone:hover {
    transform: scale(1.2);
}

/* =============================================
   Form Elements
   ============================================= */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.form-group label i {
    font-size: 18px;
    color: #21e4f9;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'YekanBakhFaNum', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #21e4f9;
    background: rgba(33, 228, 249, 0.05);
    box-shadow: 0 0 20px rgba(33, 228, 249, 0.2);
}

.form-control::placeholder {
    color: #666;
}

.verification-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    direction: ltr;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #141319;
    background: linear-gradient(135deg, #21e4f9 0%, #fd2892 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'YekanBakhFaNum', sans-serif;
    box-shadow: 0 10px 30px rgba(33, 228, 249, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(33, 228, 249, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    color: #21e4f9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'YekanBakhFaNum', sans-serif;
}

.btn-link:hover {
    color: #fd2892;
    transform: translateX(-3px);
}

/* =============================================
   Resend Section
   ============================================= */
.resend-section {
    text-align: center;
    margin-top: 25px;
}

.resend-section p {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.timer-text {
    font-size: 13px;
    color: #fd2892;
    margin-top: 10px;
    font-weight: 600;
}

/* =============================================
   Auth Footer
   ============================================= */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #21e4f9;
    transform: translateX(3px);
}

.link-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.link-text a {
    color: #21e4f9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-text a:hover {
    color: #fd2892;
}

/* =============================================
   Loading Overlay
   ============================================= */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 19, 25, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    border-radius: 24px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(33, 228, 249, 0.2);
    border-top-color: #21e4f9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #21e4f9;
    font-size: 14px;
    font-weight: 600;
}

/* =============================================
   Alert Box
   ============================================= */
.alert-box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    max-width: 400px;
    width: calc(100% - 40px);
    z-index: 200;
    transition: all 0.4s ease;
}

.alert-box.active {
    transform: translateX(-50%) translateY(0);
}

.alert-content {
    background: rgba(33, 228, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-box.error .alert-content {
    background: rgba(253, 40, 146, 0.95);
}

.alert-box.success .alert-content {
    background: rgba(33, 228, 249, 0.95);
}

.alert-content i {
    font-size: 24px;
    color: #141319;
    flex-shrink: 0;
}

.alert-content p {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #141319;
    margin: 0;
}

.alert-content button {
    background: none;
    border: none;
    color: #141319;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.alert-content button:hover {
    transform: scale(1.2);
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 25px;
    }
    
    .auth-logo h1 {
        font-size: 36px;
    }
    
    .step-header h2 {
        font-size: 24px;
    }
    
    .step-header i {
        font-size: 44px;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 20px 10px;
    }
    
    .auth-card {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .auth-logo h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .auth-logo p {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .step-header i {
        font-size: 40px;
    }
    
    .step-header h2 {
        font-size: 22px;
    }
    
    .step-header p {
        font-size: 14px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .verification-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
    
    .bg-gradient {
        animation: none;
    }
}


