:root {
    --primary-color: #06B6D4;
    --primary-dark: #06B6D4;
    --secondary-color: #06B6D4;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    display: flex;
    animation: fadeInUp 0.8s ease-out;
}

.info-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.logo-container {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo-container i {
    font-size: 40px;
    color: var(--primary-color);
}

.brand-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.brand-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 300px;
}

.login-panel {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.welcome-subtitle {
    color: #6c757d;
    font-size: 16px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > .form-control {
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(80, 152, 135, 0.15);
}

.form-floating > label {
    color: #6c757d;
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(80, 152, 135, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(80, 152, 135, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 15px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.register-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: #6c757d;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 20px;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: white;
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.9;
}

.feature-item i {
    margin-right: 15px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive */

@media (max-width: 992px) {
    .main-container {
        flex-direction: column !important;
        max-width: 500px;
        height: auto;
    }

    .info-panel {
        padding: 25px 20px !important;
        min-height: 220px !important;
        border-radius: 20px 20px 0 0 !important;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        text-align: center;
    }

    .logo-container {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 15px !important;
    }

    .logo-container i {
        font-size: 28px !important;
    }

    .brand-title {
        font-size: 24px !important;
    }

    .brand-subtitle {
        font-size: 13px !important;
        max-width: 240px !important;
    }

    .feature-item {
        font-size: 13px !important;
    }

    .feature-item i {
        font-size: 16px !important;
        margin-right: 10px;
    }

    .login-panel {
        padding: 35px 25px !important;
    }

    .welcome-title {
        font-size: 26px !important;
    }
}

@media (max-width: 576px) {
    body {
        padding: 8px !important;
    }

    .info-panel {
        padding: 20px 15px !important;
        min-height: 200px !important;
    }

    .brand-title {
        font-size: 20px !important;
    }

    .brand-subtitle {
        font-size: 12px !important;
    }

    .features-list {
        display: none !important; /* Oculta íconos en pantallas muy chicas */
    }

    .login-panel {
        padding: 30px 20px !important;
    }

    .social-login {
        flex-direction: column !important;
    }

    .login-options {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
}
