/**
 * Estilos para p¨˘gina de Login
 * Club de Patinaje Liespar
 */

:root {
    /* Paleta principal - Celeste profesional */
    --primary-color: #0EA5E9; /* Sky blue */
    --primary-dark: #0284C7;
    --primary-light: #38BDF8;
    --primary-subtle: #E0F2FE;
    
    /* Acento morado elegante */
    --secondary-color: #8B5CF6; /* Purple */
    --secondary-light: #A78BFA;
    --secondary-dark: #7C3AED;
    --accent-color: #8B5CF6;
    
    /* Grises y textos */
    --text-dark: #0F172A;
    --text-light: #64748B;
    --white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #E0F2FE 0%, #EDE9FE 100%);
    --card-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    --card-shadow-hover: 0 30px 60px rgba(139, 92, 246, 0.2);
    --input-bg: #F8FAFC;
    --input-border: #E2E8F0;
    --radius: 20px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    padding: 20px;
}

/* Decorative background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition: box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
}

.login-container:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Decorative gradient bar on top */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 10;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Panel Izquierdo - Informaci¨Žn */
.info-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.info-content {
    position: relative;
    z-index: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-main {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.logo-main:hover {
    transform: scale(1.05);
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-section .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 400;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Panel Derecho - Login */
.login-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
    position: relative;
}

.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 219, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Header Section */
.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Body Section */
.login-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 6px;
    letter-spacing: 0.3px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.input-group:focus-within::before {
    opacity: 0.15;
}

.input-group i {
    position: absolute;
    left: 20px;
    color: #a0aec0;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 16px 22px 16px 56px;
    border: 2px solid var(--input-border);
    border-radius: 14px;
    font-size: 0.95rem;
    background-color: white;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.form-control:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 180, 219, 0.15);
    transform: translateY(-1px);
}

.input-group:focus-within i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.form-control::placeholder {
    color: #cbd5e0;
    font-weight: 300;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 24px rgba(0, 180, 219, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:hover::after {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 180, 219, 0.4), 0 8px 16px rgba(142, 68, 173, 0.2);
}

.btn-login:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 219, 0.35);
}

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 1.2rem;
}

.alert-danger {
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    color: #e53e3e;
    border: 2px solid #feb2b2;
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4, #e6ffed);
    color: #38a169;
    border: 2px solid #9ae6b4;
}

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 35px;
    margin-top: 30px;
    border-top: 1px solid rgba(0, 180, 219, 0.1);
    position: relative;
    z-index: 1;
}

.login-footer p {
    color: #a0aec0;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Quick Access Section */
.quick-access {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 180, 219, 0.1);
}

.quick-access-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quick-access-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid;
    gap: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.quick-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-btn:hover::before {
    opacity: 1;
}

.quick-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.quick-btn:hover i {
    transform: scale(1.15);
}

.quick-btn span {
    font-size: 0.8rem;
}

.quick-btn:active {
    transform: scale(0.98);
}

/* Auto-filling animation */
@keyframes autoFill {
    0%, 100% {
        background-color: white;
    }
    50% {
        background-color: rgba(0, 180, 219, 0.1);
    }
}

.form-control.auto-filling {
    animation: autoFill 0.5s ease;
}

/* Admin Button */
.admin-btn {
    background: rgba(0, 180, 219, 0.08);
    border-color: rgba(0, 180, 219, 0.2);
    color: var(--primary-color);
}

.admin-btn::before {
    background: linear-gradient(135deg, rgba(0, 180, 219, 0.15), rgba(0, 180, 219, 0.05));
}

.admin-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 180, 219, 0.2);
    transform: translateY(-2px);
}

/* Trainer Button */
.trainer-btn {
    background: rgba(142, 68, 173, 0.08);
    border-color: rgba(142, 68, 173, 0.2);
    color: var(--secondary-color);
}

.trainer-btn::before {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.15), rgba(142, 68, 173, 0.05));
}

.trainer-btn:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
    transform: translateY(-2px);
}

/* Club Button */
.club-btn {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.club-btn::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
}

.club-btn:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

/* Student Button */
.student-btn {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.student-btn::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
}

.student-btn:hover {
    border-color: #ec4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .info-panel {
        display: none;
    }
    
    .login-panel {
        padding: 40px 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .login-container {
        max-width: 100%;
        border-radius: 20px;
        min-height: auto;
    }
    
    .login-panel {
        padding: 35px 24px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-footer {
        padding-top: 20px;
        margin-top: 15px;
    }
}
