/* ============================================================
   Club Voley Academy - Estilos Generales
   ============================================================ */

:root {
    --primary: #96194b;
    --primary-light: #b81e5a;
    --primary-dark: #7a0f3a;
    --accent: #e11919;
    --accent-hover: #c01010;
    --light: #fafafa;
    --dark: #191919;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --shadow: 0 8px 32px rgba(25, 25, 25, 0.15);
    --shadow-sm: 0 2px 8px rgba(25, 25, 25, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--dark);
}

/* ============================================================
   Layout principal: split screen
   ============================================================ */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* Panel izquierdo - Imagen de fondo */
.login-hero {
    flex: 1.4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(25, 25, 25, 0.88) 0%, rgba(150, 25, 75, 0.75) 100%),
        url('https://images.unsplash.com/photo-1612872087720-bb876e2e67d1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    overflow: hidden;
    padding: 3rem;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 520px;
}

.hero-logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-logo span {
    color: var(--accent);
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ============================================================
   Panel derecho - Formulario de login
   ============================================================ */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 2.5rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .brand-icon {
    width: 150px;
    height: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.login-header .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Formulario */
.login-form .form-floating {
    margin-bottom: 1rem;
}

.login-form .form-control {
    height: 52px;
    border-radius: var(--radius-sm);
    border: 2px solid #e9ecef;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.login-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(150, 25, 75, 0.12);
}

.login-form .form-floating label {
    padding: 1rem 0.85rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-form .form-floating > .form-control:focus ~ label,
.login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.8;
    transform: scale(0.85) translateY(-0.6rem) translateX(0.15rem);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.form-options .form-check {
    margin-bottom: 0;
}

.form-options .form-check-input {
    border-color: #ced4da;
}

.form-options .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-options .form-check-label {
    font-size: 0.88rem;
    color: var(--text-light);
}

.form-options .forgot-link {
    font-size: 0.88rem;
    color: var(--primary-light);
    text-decoration: none;
}

.form-options .forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(150, 25, 75, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 1rem;
}

/* Mensajes de error */
.alert-message {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-message.show {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.alert-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-message i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Footer del login */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.login-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.login-footer .social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f3f5;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.login-footer .social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================
   Responsive - Mobile (< 768px)
   ============================================================ */
@media (max-width: 767.98px) {
    .login-container {
        flex-direction: column;
    }

    .login-hero {
        flex: none;
        padding: 2rem 1.5rem;
        min-height: 35vh;
        background:
            linear-gradient(135deg, rgba(25, 25, 25, 0.92) 0%, rgba(150, 25, 75, 0.80) 100%),
            url('https://images.unsplash.com/photo-1612872087720-bb876e2e67d1?auto=format&fit=crop&w=768&q=80') center/cover no-repeat;
    }

    .hero-logo {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .login-panel {
        padding: 2rem 1.5rem;
    }

    .login-card {
        max-width: 100%;
    }

    .login-header h2 {
        font-size: 1.4rem;
    }

    .login-header .brand-icon {
        width: 125px;
        height: 125px;
    }
}

/* ============================================================
   Responsive - Tablets (768px - 1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .login-hero {
        flex: 1.2;
        padding: 2rem;
    }

    .hero-logo {
        font-size: 2.5rem;
    }

        .login-panel
 {
        padding: 2rem;
    }
}
