/* Enhanced Authentication Form Styles with Split Layout
   File location: assets/css/public/auth-styles.css */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.page-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide Header and Footer */
#site-header, 
.site-header,
#site-footer,
.site-footer,
footer {
    display: none !important;
}

/* Main Container */
.partnerup2win-auth-container {
    min-height: 100vh;
    display: flex;
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
}

/* Split Layout */
.auth-split-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Section - Forms */
.auth-left-section {
    flex: 1;
        background: linear-gradient(135deg, #f1faee 0%, #e6f3e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.auth-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC143C, #034694, #C8102E, #DA020E, #6CABDD, #132257);
}

/* Right Section - Promotional Content */
.auth-right-section {
    flex: 1;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.9), rgba(139, 0, 0, 0.9)),
                url('<?php echo PARTNERUP2WIN_ASSETS_URL; ?>images/stadium-bg.jpg') center/cover;
    position: relative;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    min-height: 100vh;
    overflow-y: auto;
}

.auth-right-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.85), rgba(139, 0, 0, 0.85));
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Promo Header */
.promo-header h1 {
    font-size: 3.5em;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 30%);
    background: linear-gradient(45deg, #fff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partnership-text {
    font-size: 1.2em;
    margin: 0 0 20px 0;
        opacity: 0.9;
    color: #fff;
}

.team-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: -15px 0;
}

.arsenal-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.team-name {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-title {
    font-size: 1.5em;
    font-weight: 800;
    margin: 20px 0 30px 0;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

/* Promo Description */
.promo-description {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-description p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
        color: #fff;

}

/* How It Works Section */
.how-it-works {
    background: #282c4b;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.how-it-works h3 {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #fff;
    text-align: center;
}

.steps {
    text-align: left;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    background: #FFD700;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-icon {
    font-size: 1.5em;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1em;
    line-height: 1.4;
    flex: 1;
}

.result-step {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
    margin-top: 25px;
}

.result-step .step-text {
    font-size: 1.2em;
    color: #FFD700;
}

/* Prize and LUK Section */
.prize-luk-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.prize-section {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    flex: 1;
    max-width: 200px;
}

.prize-amount {
    font-size: 2.5em;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-label {
    font-size: 1.1em;
    font-weight: 600;
    margin: 5px 0 0 0;
}

.luk-coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 215, 0, 0.2);
    padding: 20px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    width: 80px;
    height: 80px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.luk-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFD700;
}

.luk-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #FFD700;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-join-game {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    flex: 1;
}

.btn-join-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    background: linear-gradient(45deg, #FFA500, #FFD700);
}

.btn-demo {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex: 1;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Original Form Styles */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
}

.auth-header p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
       background: #f2b5b3;
    padding: 5px;
    margin-bottom: 30px;
    border-radius: 8px;
}
.auth-tabs button.auth-tab {
    background-color: #f2b5b3 !important;
}
.auth-tabs button.auth-tab.active {
    background: #fff !important;
}
.auth-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: #333;
}

.auth-tab.active {
    color: #000000;
}

 

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.form-group.checkbox-group label a {
    margin-left: 5px;
    margin-right: 5px;
}
.btn-primary {
        background: linear-gradient(135deg, #da0000, #c30808);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  font-size: 19px;
    background: #f8f9fa;
    color: #ffffff;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5em;
}

.form-header p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Loading Overlay */
.auth-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 12px;
    z-index: 10;
}

.auth-loading.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-loading p {
    color: #666;
    margin: 0;
}

/* Messages */
.auth-messages {
    margin-bottom: 20px;
}

.auth-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.auth-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
    color: #666;
}

.modal-body p {
    font-size: 22px;
    margin: 0 0 15px 0;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

/* Team Selection Styling */
#register-team {
    transition: all 0.3s ease;
}

#register-team:focus {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .auth-split-layout {
        flex-direction: column;
    }
    
    .auth-left-section,
    .auth-right-section {
        flex: none;
        min-height: 50vh;
    }
    
    .auth-right-section {
        order: -1;
    }
    
    .promo-header h1 {
        font-size: 2.5em;
    }
    
    .event-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .auth-left-section,
    .auth-right-section {
        padding: 10px;
    }
    
    .auth-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .auth-header h1 {
        font-size: 2em;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .auth-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .promo-header h1 {
        font-size: 2em;
    }
    
    .event-title {
        font-size: 1.5em;
    }
    
    .prize-amount {
        font-size: 3em;
    }
    
    .prize-luk-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .prize-section {
        max-width: none;
        flex: none;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-join-game {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 15px;
    }
    
    .auth-header {
        margin-bottom: 20px;
    }
    
    .auth-header h1 {
        font-size: 1.8em;
    }
    
    .auth-header p {
        font-size: 1em;
    }
    
    .form-group input,
    .form-group select,
    .btn {
        font-size: 14px;
    }
    
    .promo-content {
        padding: 20px;
    }
    
    .promo-header h1 {
        font-size: 1.8em;
    }
    
    .event-title {
        font-size: 1.3em;
    }
    
    .prize-amount {
        font-size: 2.5em;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .step-number {
        margin: 0 auto 10px auto;
    }
    
    .game-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* Print Styles */
@media print {
    .partnerup2win-auth-container {
        display: none;
    }
}