/* =========================================
   BusBooker Premium Authentication Styles
   ========================================= */

:root {
    --primary-color: #ff6b00;
    --secondary-color: #ffb703;
    --dark-bg: #111827;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.1);
    --gradient-primary: linear-gradient(135deg, #ff6b00 0%, #ffb703 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

/* Background Animations */
.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at top left, rgba(255, 107, 0, 0.05), transparent 40%),
                radial-gradient(circle at bottom right, rgba(255, 183, 3, 0.1), transparent 40%);
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 0, 0.15);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 183, 3, 0.15);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Auth Container */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    display: flex;
    max-width: 1100px;
    width: 100%;
    min-height: 600px;
}

/* Left Side Illustration */
.auth-illustration {
    flex: 1;
    background: var(--gradient-primary);
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    overflow: hidden;
}

.auth-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.auth-illustration-content {
    position: relative;
    z-index: 2;
}

.auth-bus-graphic {
    width: 80%;
    max-width: 400px;
    margin: auto;
    display: block;
    animation: busDrive 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

@keyframes busDrive {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-15px) scale(1.02); }
}

/* Right Side Form */
.auth-form-container {
    flex: 1;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.auth-title {
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* Floating Inputs */
.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control-custom {
    width: 100%;
    padding: 12px 15px;
    padding-left: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
    z-index: 10;
}

.form-control-custom:focus ~ .input-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

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

/* Buttons */
.btn-auth {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.4);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-auth:hover::before {
    transform: translateX(100%);
}

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

/* Checkbox */
.custom-checkbox {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Password Strength Meter */
.password-strength {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

/* Toast Notifications */
.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background: white;
    color: #333 !important;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transform: translateX(120%);
    border-left: 5px solid;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-toast.show {
    transform: translateX(0);
}

.custom-toast.success { border-color: #10b981; }
.custom-toast.error { border-color: #ef4444; }
.custom-toast.info { border-color: #3b82f6; }

.toast-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.custom-toast.success .toast-icon { color: #10b981; }
.custom-toast.error .toast-icon { color: #ef4444; }
.custom-toast.info .toast-icon { color: #3b82f6; }

/* Responsive */
@media (max-width: 992px) {
    .auth-glass-panel { flex-direction: column; }
    .auth-illustration { display: none; } /* Hide on small screens for better form visibility */
    .auth-form-container { padding: 2.5rem; border-radius: 24px; }
    .auth-wrapper { padding: 1rem; }
}

@media (max-width: 576px) {
    .auth-form-container { padding: 1.5rem; }
}

/* Drag Drop File Upload */
.drag-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drag-drop-zone.active {
    border-color: var(--primary-color);
    background: rgba(255, 107, 0, 0.05);
}

.drag-drop-zone i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.drag-drop-zone:hover i { color: var(--primary-color); }

/* Responsive Global Font Scaling for Mobile Devices */
@media (max-width: 768px) {
    html {
        font-size: 85% !important;
    }
    
    h1, .h1 {
        font-size: 1.8rem !important;
    }
    h2, .h2 {
        font-size: 1.5rem !important;
    }
    h3, .h3 {
        font-size: 1.3rem !important;
    }
    h4, .h4 {
        font-size: 1.1rem !important;
    }
    h5, .h5 {
        font-size: 0.95rem !important;
    }
    h6, .h6 {
        font-size: 0.85rem !important;
    }
    
    body, p, span, a, td, th, li, input, select, textarea, button, label {
        font-size: 0.85rem !important;
    }
    
    .badge, .small, small, .fs-sm, [style*="font-size"] {
        font-size: 0.72rem !important;
    }
}
