
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #0d0e10 0%, #090a0c 100%);
    font-family: "Poppins", sans-serif;
    overflow: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.2;
    animation: float 10s ease-in-out infinite alternate;
}
#usuario {
    -webkit-text-security: disc;
}

.input-group i:not(.toggle-visibility) {
    position: absolute;
    left: 10px;
    top: 12px;
    color: #00bfff;
}

/* Ojito a la derecha */
.input-group .toggle-visibility {
    position: absolute;
    right: 12px;      /* margen desde el borde derecho */
    top: 50%;         /* centrado vertical */
    transform: translateY(-50%);
    cursor: pointer;
    color: #00bfff;   
    font-size: 1rem;
    z-index: 2;
}

body::before {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle at center, #325cb0 0%, #2a4c8d 100%);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

/* Esfera plomiza */
body::after {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, #c3c3c5 0%, #e4e4e4 80%);
    bottom: -120px;
    right: -100px;
    animation-delay: 2s;
}

.glow-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(227, 227, 230, 0.25), transparent 70%);
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.2;
    animation: pulse 7s infinite alternate ease-in-out;
    z-index: 0;
}

/* Animaciones suaves */
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-25px) scale(1.05); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 72%;
    max-width: 1150px;
    min-height: 560px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    box-shadow:
        0 10px 40px rgba(0,0,0,0.45),
        0 0 60px rgba(0,114,255,0.08);
}

.form-section {
    flex: 1.2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: #fff;
}

.form-section h2 {
    text-align: center;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.form-section h3 {
    text-align: center;
    color: #ccc;
    margin-bottom: 25px;
}

.logo img {
    display: block;
    margin: 0 auto 20px auto;
    max-height: 70px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 40px;
    color: #aaa;
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: #00bfff;
}


.form-section form {
    max-width: 450px;
    margin: 0 auto;
}

.input-group input {
    width: 100%;
    padding: 13px 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.input-group input:focus{
    border: 1px solid rgba(0,198,255,0.6);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 0 15px rgba(0,198,255,0.18);
}

button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,114,255,0.35);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,198,255,0.35);
}
.error-message {
    background: rgba(255,0,0,0.2);
    color: #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}
/* =========================
   LINK REGISTRO
========================= */
.register-link{
    margin-top: 22px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #cfcfcf;
}

.register-link span{
    color: #bdbdbd;
    font-weight: 400;
}

.register-link a{
    color: #00c6ff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.25s ease;
}

/* Línea animada */
.register-link a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.register-link a:hover{
    color: #6fdcff;
    text-shadow: 0 0 8px rgba(0,198,255,0.5);
}

.register-link a:hover::after{
    width: 100%;
}
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #bbb;
}

.video-section {
    flex: 1.3;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("tu-video-thumbnail.jpg") center/cover no-repeat;
    filter: blur(20px) brightness(40%);
    z-index: 0;
}

.video-section video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

#install-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: #007bff !important;
    color: #fff !important;
    font-size: 15px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    width: auto !important;
    z-index: 9999 !important;
}

@media (max-width: 768px) {

    body{
        padding: 20px;
        overflow-y: auto;
    }

    .login-container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        border-radius: 20px;
    }

    .form-section{
        padding: 2rem 1.5rem;
    }

    .video-section {
        display: none;
    }

    .form-section h2{
        font-size: 1.6rem;
    }

    .form-section h3{
        font-size: 0.95rem;
    }

    footer{
        margin-top: 25px;
    }
}
