/**
 * RYVION Studios - Authentication Page Styles
 * Login/Registration with tabbed interface
 */

/* ============================================
   AUTH PAGE LAYOUT
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background: #0a0e27;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* ============================================
   AUTH CONTAINER
   ============================================ */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95) 0%, rgba(15, 25, 50, 0.95) 100%);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
   LOGO
   ============================================ */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(180deg, #ffffff 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   TABS (Members / Partners)
   ============================================ */
.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    background: rgba(20, 25, 50, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-tab:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.4);
    color: #ffffff;
}

.auth-tab.active {
    background: rgba(74, 144, 226, 0.25);
    border-color: #4a90e2;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.tab-icon {
    font-size: 20px;
}

/* ============================================
   TAB CONTENT
   ============================================ */
.auth-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* ============================================
   FORM TOGGLE (Login / Register)
   ============================================ */
.form-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: 2px solid rgba(74, 144, 226, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: rgba(74, 144, 226, 0.4);
    color: #ffffff;
}

.toggle-btn.active {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    color: #ffffff;
}

/* ============================================
   FORM STYLES
   ============================================ */
.auth-form {
    animation: fadeIn 0.4s ease;
}

.form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"] {
    width: 100%;
    background: rgba(20, 25, 50, 0.8);
    border: 2px solid rgba(74, 144, 226, 0.2);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(20, 25, 50, 1);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.2);
}

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

/* Two column layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ============================================
   FORM OPTIONS
   ============================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

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

.forgot-link {
    font-size: 13px;
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #6b9dd6;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c78 0%, #2d5a9e 50%, #4a7ac2 100%);
    border: 3px solid #ffffff;
    color: #ffffff;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #2d5a9e 0%, #4a7ac2 50%, #6b9dd6 100%);
    box-shadow: 0 0 35px rgba(74, 144, 226, 0.7);
    transform: translateY(-2px);
}

/* ============================================
   DIVIDER
   ============================================ */
.form-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.form-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(74, 144, 226, 0.2);
}

.form-divider span {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95) 0%, rgba(15, 25, 50, 0.95) 100%);
    padding: 0 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    background: rgba(20, 25, 50, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.4);
}

.social-btn span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.social-btn.discord span {
    background: #5865f2;
}

.social-btn.google span {
    background: #ea4335;
}

/* ============================================
   FOOTER
   ============================================ */
.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.back-home {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #4a90e2;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .auth-logo a {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .auth-tab {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .tab-icon {
        font-size: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 20px 15px;
    }
    
    .auth-container {
        padding: 25px 20px;
    }
    
    .auth-logo a {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .auth-tab {
        flex-direction: column;
        gap: 5px;
        padding: 12px;
    }
    
    .tab-text {
        font-size: 12px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
