/* Auth Pages - Split Screen Dark Mystical Design */

*, *::before, *::after {
    box-sizing: border-box;
}

.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, #0f0c29 0%, #1a0a2e 50%, #16213e 100%);
    overflow-x: hidden;
}

.auth-container {
    max-width: 100vw;
    overflow-x: hidden;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Side - Form */
.auth-form-side {
    background: linear-gradient(180deg, #0f0c29 0%, #1a0a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.auth-form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-form-content {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.auth-logo {
    margin-bottom: 2.5rem;
    text-align: center;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-logo a:hover {
    transform: scale(1.05);
}

.auth-logo .logo-icon {
    font-size: 2.25rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.auth-logo .logo-text {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form-wrapper h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Styles */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
    color: white;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Form hint */
.form-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.4rem;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #f59e0b;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #d946ef;
}

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

.link-forgot {
    color: #f59e0b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-forgot:hover {
    color: #d946ef;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d946ef 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.4);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.auth-footer a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #d946ef;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Right Side - Visual */
.auth-visual-side {
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

/* Animated stars background */
.auth-visual-side::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 200px 180px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 250px 60px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 300px 140px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 350px 200px, rgba(255,255,255,0.6), transparent);
    background-size: 400px 400px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(1deg); }
}

/* Gradient orbs */
.auth-visual-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(217, 70, 239, 0.15) 0%, transparent 50%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.visual-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    color: white;
}

.visual-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.visual-text > p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Visual List */
.visual-list {
    margin-bottom: 2.5rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateX(5px);
}

/* Price Box */
.visual-price {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 70, 239, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    text-align: center;
}

.price-amount {
    font-family: 'Cinzel', serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.price-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Features grid for register page */
.features-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.feature-item-small span {
    font-size: 1rem;
}

/* Date Picker Custom Styles */
.date-picker-wrapper {
    position: relative;
}

.date-picker-wrapper .form-control {
    cursor: pointer;
}

.custom-datepicker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a0a2e 0%, #16213e 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: none;
}

.custom-datepicker.active {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    gap: 0.5rem;
}

.dp-header select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    flex: 1;
}

.dp-header select:focus {
    outline: none;
    border-color: #f59e0b;
}

.dp-header select option {
    background: #1a0a2e;
    color: white;
}

.dp-nav {
    display: flex;
    gap: 0.25rem;
}

.dp-nav button {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.dp-nav button:hover {
    background: rgba(245, 158, 11, 0.3);
}

.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.5rem;
}

.dp-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dp-day {
    text-align: center;
    padding: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dp-day:hover:not(.dp-empty):not(.dp-disabled) {
    background: rgba(245, 158, 11, 0.25);
    color: white;
}

.dp-day.dp-today {
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.dp-day.dp-selected {
    background: linear-gradient(135deg, #f59e0b 0%, #d946ef 100%);
    color: white;
    font-weight: 600;
}

.dp-day.dp-empty {
    cursor: default;
}

.dp-day.dp-disabled {
    color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        padding: 2rem 1.5rem;
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    .auth-form-side {
        padding: 1.5rem 1rem;
        width: 100%;
    }
    
    .auth-form-content {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .auth-form-wrapper {
        width: 100%;
    }
    
    .auth-form {
        width: 100%;
    }
    
    .form-group {
        width: 100%;
    }
    
    .auth-logo {
        margin-bottom: 2rem;
    }
    
    .auth-logo .logo-icon {
        font-size: 1.75rem;
    }
    
    .auth-logo .logo-text {
        font-size: 1.5rem;
    }
    
    .auth-form-wrapper h1 {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.8rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-auth {
        padding: 0.9rem;
        font-size: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .features-inline {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .feature-item-small {
        font-size: 0.8rem;
    }
    
    .auth-footer {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .auth-footer p {
        font-size: 0.9rem;
    }
    
    /* Date picker mobile */
    .custom-datepicker {
        padding: 1rem;
    }
    
    .dp-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .dp-header select {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .dp-nav button {
        width: 32px;
        height: 32px;
    }
    
    .dp-day {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: 1.25rem 1rem;
    }
    
    .auth-logo {
        margin-bottom: 1.5rem;
    }
    
    .auth-logo .logo-icon {
        font-size: 1.5rem;
    }
    
    .auth-logo .logo-text {
        font-size: 1.25rem;
    }
    
    .auth-form-wrapper h1 {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.85rem;
    }

    .features-inline {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .feature-item-small {
        justify-content: center;
    }
    
    .checkbox-label span {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}
