* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body,
html {
    height: 100%;
    width: 100%;
    background-color: #e0f7fa;
    overflow: hidden;
    position: relative;
}

.background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.9);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.blur-box {
    position: relative;
    width: 50%;
    max-width: 420px;
    padding: 2rem;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    background-color: rgba(170, 231, 237, 0.6);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    text-align: center;
}

.top-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tab {
    flex: 1;
    text-align: center;
    font-weight: bold;
    padding: 0.5rem;
    text-decoration: none;
    color: #0D47A1;
}

.tab.active {
    border-bottom: 3px solid #0D47A1;
}

.logo {
    width: 40%;
    height: auto;
}

h2 {
    color: #0D47A1;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    /* Redondeo suave que acompaña a los botones */
    padding: 0.2rem 1rem;
    margin: 1rem 0;
    border: 1px solid #e0e6ed;
    /* Borde sutil en lugar de solo sombra */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.input-group:focus-within {
    border-color: #004aad;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
    background: #fff;
}

.icon {
    color: #0D47A1;
    margin-right: 0.8rem;
    font-size: 1rem;
}

.input-group input {
    border: none;
    outline: none;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.5rem;
    /* Más espacio para el texto */
    line-height: normal;
    background: transparent;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    color: #333;
}

.input-group input::placeholder {
    color: #aab8c2;
}

.login-button {
    background: linear-gradient(135deg, #004aad 0%, #00307a 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    /* Redondeo sutil y elegante */
    width: 100%;
    max-width: 280px;
    /* Un poco más compacto */
    margin: 1.5rem auto 0;
    display: block;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.2);
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 173, 0.3);
    background: linear-gradient(135deg, #0056cc 0%, #004aad 100%);
}

.options {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #004aad;
}

.options a {
    text-decoration: none;
    color: #004aad;
}

.logo-superior {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.logo-superior img {
    height: 80px;
    width: auto;
    max-width: 100%;
}

@media screen and (max-width: 768px) {

    body,
    html {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100%;
    }

    .background {
        display: none;
    }

    .login-container {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
        align-items: flex-start;
    }

    .blur-box {
        width: 90% !important;
        max-width: none !important;
        margin-top: 60px;
        margin-bottom: 20px;
        padding: 2rem 1.5rem;
        background-color: rgba(170, 231, 237, 0.6);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
        border-radius: 40px;
    }

    .logo-superior {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-superior img {
        height: 50px;
    }
}

/* Floating Info Button - Enhanced */
.floating-info-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(58, 123, 213, 0.5);
    text-decoration: none;
    z-index: 10001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid rgba(255, 255, 255, 0.4);
    animation: premium-pulse 2.5s infinite, floating-btn 3s ease-in-out infinite;
}

@keyframes premium-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7), 0 10px 25px rgba(58, 123, 213, 0.5); }
    70% { box-shadow: 0 0 0 25px rgba(0, 210, 255, 0), 0 10px 25px rgba(58, 123, 213, 0.5); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0), 0 10px 25px rgba(58, 123, 213, 0.5); }
}

@keyframes floating-btn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.floating-info-btn:hover {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #00e5ff 0%, #4a90e2 100%);
    box-shadow: 0 15px 35px rgba(58, 123, 213, 0.6);
    color: white;
}

.floating-info-btn i {
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {
    .floating-info-btn {
        top: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    .floating-info-btn i {
        font-size: 1.8rem;
    }
}