﻿/* =============================================
   D-NOVA CHECKOUT SYSTEM - STYLES
   Premium dark theme with BMW Matrix LED accents
   ============================================= */

/* =============================================
   VIDEO BACKGROUND FOR AUTH PAGES
   ============================================= */

.checkout-auth-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* Container */
.container-checkout {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

/* =============================================
   PROGRESS INDICATOR
   ============================================= */

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.3),
        rgba(50, 100, 200, 0.3)
    );
    border-color: rgba(100, 150, 255, 0.8);
    color: rgba(100, 150, 255, 0.95);
    box-shadow: 
        0 0 30px rgba(100, 150, 255, 0.4),
        0 0 60px rgba(100, 150, 255, 0.2);
    animation: pulseActive 2s ease-in-out infinite;
}

.progress-step.completed .step-number {
    background: rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 100, 0.6);
    color: rgba(0, 255, 100, 0.95);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-step.active .step-label {
    color: rgba(100, 150, 255, 0.9);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

@keyframes pulseActive {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(100, 150, 255, 0.4),
            0 0 60px rgba(100, 150, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(100, 150, 255, 0.6),
            0 0 80px rgba(100, 150, 255, 0.3);
    }
}

/* =============================================
   AUTH HEADER
   ============================================= */

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px;
    text-shadow: 0 0 30px rgba(100, 150, 255, 0.3);
}

.checkout-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* =============================================
   MESSAGES
   ============================================= */

.error-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 600;
    animation: slideIn 0.4s ease-out;
}

.error-message {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: rgba(255, 150, 150, 0.95);
}

.success-message {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.4);
    color: rgba(100, 255, 150, 0.95);
}

.error-icon,
.success-icon {
    font-size: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   FORMS
   ============================================= */

.auth-form {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.8),
        rgba(10, 10, 10, 0.8)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 150, 255, 0.6) 50%,
        transparent 100%
    );
}

.auth-form-compact {
    max-width: 450px;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.form-section:last-of-type {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(100, 150, 255, 0.9);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(100, 150, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Checkboxes */
.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(100, 150, 255, 0.4);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-text {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.checkbox-text a {
    color: rgba(100, 150, 255, 0.9);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.checkbox-label-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary-large {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.95),
        rgba(50, 100, 200, 0.95)
    );
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary-large:hover::before {
    transform: translateX(100%);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(100, 150, 255, 0.4);
}

.btn-secondary-large {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 150, 255, 0.4);
    color: rgba(100, 150, 255, 0.95);
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-primary-large:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-icon {
    font-size: 22px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
}

.form-footer-text {
    text-align: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.link-primary {
    color: rgba(100, 150, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

.link-secondary {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
}

.link-secondary:hover {
    color: rgba(100, 150, 255, 0.9);
}

/* =============================================
   AUTH ALTERNATIVE
   ============================================= */

.auth-alternative {
    margin-top: 40px;
}

.separator {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.separator span {
    position: relative;
    background: #0a0a0a;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
}

/* =============================================
   AUTH OPTIONS GRID
   ============================================= */

.auth-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.auth-option-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.95),
        rgba(10, 10, 10, 0.95)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.auth-option-card:hover {
    border-color: rgba(100, 150, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(100, 150, 255, 0.2);
}

.auth-option-card.featured {
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 0 40px rgba(100, 150, 255, 0.15);
}

.featured-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.95),
        rgba(50, 100, 200, 0.95)
    );
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-card-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.auth-option-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.auth-option-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.benefits-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
}

.btn-auth-primary,
.btn-auth-secondary {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-auth-primary {
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.95),
        rgba(50, 100, 200, 0.95)
    );
    border: none;
    color: #ffffff;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(100, 150, 255, 0.4);
}

.btn-auth-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.btn-auth-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 150, 255, 0.4);
}

/* =============================================
   CHECKOUT FOOTER
   ============================================= */

.checkout-footer {
    margin-top: 40px;
    text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .container-checkout {
        padding: 40px 16px;
    }
    
    .checkout-progress {
        padding: 16px;
        overflow-x: auto;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .checkout-title {
        font-size: 28px;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-primary-large {
        font-size: 16px;
        padding: 16px 20px;
    }
}
