:root {
    --primary-color: #4e73df;
    --secondary-color: #224abe;
    --background-gradient: linear-gradient(135deg, #1A2980 0%, #26D0CE 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: 1px solid rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: 1px solid rgba(255, 255, 255, 0.1);
    --text-color: #f8f9fa;
    --text-muted: #cbd5e1;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-blur: blur(16px);
}

body {
    background: var(--background-gradient);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    /* Default text color for body, overridden in specific areas if needed */
    display: flex;
    flex-direction: column;
}

#layoutAuthentication {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#layoutAuthentication_content {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    /* Center content vertically */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

main {
    width: 100%;
}

/* Glassmorphism Card */
.card {
    background: var(--card-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--card-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    color: var(--text-color);
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 0;
}

.card-header h5 {
    color: var(--text-color);
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.card-header h6 {
    color: var(--text-muted);
}

/* Modern Inputs */
.form-control {
    background: var(--input-bg) !important;
    border: var(--input-border) !important;
    color: var(--text-color) !important;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Modern Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

/* Video Container */
.video-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

iframe {
    width: 100%;
    /* height is handled by aspect ratio or direct attribute, but let's ensure it fills container */
    display: block;
}

/* Footer */
footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

footer .text-muted {
    color: #ffffff !important;
}

footer a {
    color: #ffffff !important;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text-color);
    text-decoration: none;
}

/* Info Section (Tarifas, Pagos, Contactos) */
.modal-body {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark overlay for readability */
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(5px);
    margin-top: 2rem;
}

.modal-body h6 {
    color: var(--text-muted);
    line-height: 1.8;
}

.modal-body u {
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    color: var(--text-color);
    font-size: 1.1em;
}

.img-thumbnail {
    background-color: transparent !important;
    border: none !important;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.img-thumbnail:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Floating Whatsapp */
a[href*="whatsapp"] {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.3s ease;
    animation: pulse-white 2s infinite;
}

a[href*="whatsapp"]:hover {
    animation: none;
    /* Stop pulsing on hover */
    transform: scale(1.1) rotate(5deg);
}

@keyframes pulse-white {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1.05);
        /* Slight grow */
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        /* Expanding ring */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Responsive Login Container */
.login-layout-container {
    max-width: 98%;
    /* Mobile first: wider width on small screens */
    margin: 0 auto;
    /* Center the container */
}

@media (min-width: 992px) {
    .login-layout-container {
        max-width: 70%;
    }
}