body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e0e1a;
    color: #fff;
    overflow: hidden;
}

/* LOADING */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a00ff88, #11001f88, #00ff88aa);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fade-in 1s ease-in-out;
    backdrop-filter: blur(12px);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.player,
.content {
    display: none;
}

.player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    background: rgba(30, 0, 45, 0.6);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 255, 128, 0.3), 0 0 10px rgba(138, 43, 226, 0.5);
    backdrop-filter: blur(13px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    top: 50px;
}

/* LOGO */
.logo-container {
    position: absolute;
    top: -200px;
    left: 22%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    animation: float 3s ease-in-out infinite;
    transform-origin: center bottom;
}

.logo-container img {
    width: 220%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* FORM TEXT & INPUT */
.content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #d0d0d0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 150%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px #a100ff, 0 0 25px #00ff84;
    outline: none;
}

/* BUTTON STYLES */
.content button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #00ff84, #00cfff);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 255, 128, 0.4);
    transition: 0.3s ease;
}

.content button:hover {
    background: linear-gradient(90deg, #b892ff, #6e00ff);
    box-shadow: 0 0 20px rgba(174, 0, 255, 0.6);
}

/* LINK ESTILO */
.create-account {
    margin-top: 20px;
    font-size: 1rem;
}

.create-account a {
    color: #00ff84;
    text-decoration: none;
    transition: 0.3s ease;
}

.create-account a:hover {
    color: #ffffff;
}

/* GRADIENT TEXT */
.animated-gradient {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(270deg, #00ff84, #8a2be2, #ffffff, #00ff84);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 8s ease infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* OTP FORM ESTILO */
.otp-form-container {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 400px;
    margin: auto;
}

.otp-form-container h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.otp-input-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    border: 2px solid #ffffff44;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #ffffffcc;
    box-shadow: 0 0 12px #00ff84aa;
    background: rgba(255, 255, 255, 0.18);
}

.otp-form-container button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #00ff99, #6a00ff);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 255, 128, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.otp-form-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 128, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .content {
        padding: 15px;
        max-width: 90%;
        border-radius: 15px;
        margin: 20px auto;
    }

    .otp-form-container {
        padding: 15px 20px;
        max-width: 90%;
        border-radius: 10px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 10px;
        max-width: 95%;
    }

    .animated-gradient {
        font-size: 1.2rem;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }

    .otp-input-container {
        gap: 10px;
    }

    .otp-form-container h2 {
        font-size: 1rem;
    }

    .otp-form-container button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Íconos dentro del input */
.input-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #bdbdbd;
    font-size: 18px;
    pointer-events: none;
}

.input-icon input {
    padding-left: 45px !important;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: #fff;
    height: 45px;
    width: 90%;
    transition: 0.3s ease;
}

.input-icon input::placeholder {
    color: #cccccc;
}

.input-icon input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px #8f00ff80, 0 0 20px #00ff96;
}

.btn {
    background: linear-gradient(90deg, #00ff88, #00c2ff);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,136,0.2) 0%, transparent 70%);
    animation: pulse 2s infinite;
    z-index: -1;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8), 0 0 50px rgba(0, 255, 136, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

/* Animación para logo */
.logo-container img {
    width: 240px;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

/* Textos */
.create-account p {
    color: #bdbdbd;
}

.create-account a {
    color: #00ff84;
    text-decoration: none;
}

.create-account a:hover {
    color: #fff;
}

/* Íconos personalizados */
.icon-user::before {
    content: '\f007'; /* Unicode de Font Awesome usuario */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.icon-lock::before {
    content: '\f023'; /* Unicode de Font Awesome candado */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #00ff7f;
}

/* Estilo centrado y sobrio del checkbox */
.remember-me {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    color: #ccc;
    font-size: 14px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00ffcc; /* Color neon-verde/azul */
    margin-right: 8px;
    border-radius: 4px;
    cursor: pointer;
}