/* ========================================
   RACEWIN AUTHENTICATION PAGES
   Login & Registration Styles
   Version: 1.0.0
   ======================================== */

/* ========================================
   AUTH SECTION
   ======================================== */
.auth-section {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.auth-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(226, 45, 44, 0.05) 0%, 
        rgba(255, 255, 255, 1) 50%,
        rgba(226, 45, 44, 0.03) 100%);
}

/* ========================================
   AUTH CONTAINER
   ======================================== */
.auth-container {
    max-width: 1100px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
}

/* ========================================
   AUTH FORM PANEL
   ======================================== */
.auth-form-panel {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(226, 45, 44, 0.1);
    color: var(--primary-red);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label i {
    color: var(--primary-red);
    font-size: 0.875rem;
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-normal);
}

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

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
}

.forgot-password-link {
    font-size: 0.875rem;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.forgot-password-link:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

/* ========================================
   AUTH FOOTER
   ======================================== */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.create-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.create-account-link:hover {
    color: var(--primary-red-dark);
    transform: translateX(5px);
}

/* ========================================
   AUTH BRAND PANEL
   ======================================== */
.auth-brand-panel {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.brand-logo {
    margin-bottom: 2rem;
}

.brand-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.brand-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.brand-feature i {
    font-size: 1.25rem;
    color: var(--white);
}

.brand-feature span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

/* ========================================
   FOOTER CONTACT
   ======================================== */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-contact i {
    color: var(--primary-red);
    margin-top: 0.25rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
    
    .auth-brand-panel {
        display: none;
    }
    
    .auth-form-panel {
        padding: 2.5rem 2rem;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .auth-section {
        padding: 2rem 0;
    }
    
    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .auth-form-panel {
        padding: 1.5rem 1rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .brand-features {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* ========================================
   REGISTRATION PAGE SPECIFIC
   ======================================== */
.auth-card-register {
    min-height: 750px;
}

.auth-card-register .brand-features {
    grid-template-columns: repeat(2, 1fr);
}

/* ========================================
   RESPONSIVE - REGISTRATION
   ======================================== */
@media (max-width: 1024px) {
    .auth-card-register {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .auth-card-register .brand-features {
        grid-template-columns: 1fr;
    }
}

