/* -----------------------------
   GENERAL STYLES
----------------------------- */

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    overflow: hidden;
}

/* -----------------------------
   LOADING SCREEN
----------------------------- */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.7), rgba(75, 0, 130, 0.7), rgba(255, 255, 255, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fade-in 1s ease-in-out;
    backdrop-filter: blur(15px);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* -----------------------------
   CONTENT STYLES
----------------------------- */

.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: rgb(42 42 117 / 64%);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgb(239 102 255 / 50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    top: 50px;
}

/* -----------------------------
   MEDIA QUERIES
----------------------------- */
@media (max-width: 768px) {
    .content {
        padding: 15px;
        max-width: 90%; 
        border-radius: 15px;
        margin: 20px auto;
        box-sizing: border-box;
    }

    .content button {
        font-size: 0.9rem; 
        padding: 10px;
    }

    .form-group input {
        width: 100%; 
        font-size: 0.9rem; 
        padding: 10px; 
        box-sizing: border-box; 
    }
}

@media (max-width: 480px) {
    .content {
        padding: 10px;
        max-width: 95%;
        margin: 20px auto;
        box-sizing: border-box;
    }

    .animated-gradient {
        font-size: 1.2rem; /* Smaller text */
    }

    .content p {
        font-size: 0.8rem; /* Smaller text */
    }

    .form-group input {
        width: 100%; 
        font-size: 0.8rem; 
        padding: 8px; 
        box-sizing: border-box; 
    }
}


/* -----------------------------
   ANIMATIONS
----------------------------- */

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* -----------------------------
   TEXT STYLES
----------------------------- */

/* Gradient text */

.animated-gradient {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(270deg, #ff0099, #d403ed, #13d3f1, #00ff08, #00ff43);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 6s ease infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* -----------------------------
   LOGO
----------------------------- */

.logo-container {
    position: absolute;
    top: -160px;
    left: 24%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: transparent;
    animation: float 3s ease-in-out infinite;
    transform-origin: center bottom;
}

.logo-container img {
    width: 220%;
    height: auto;
}

/* -----------------------------
   FORM STYLES
----------------------------- */

/* General paragraph styles */
.content p {
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: #dddddd;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 95%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(189, 118, 255, 0.5), 0 0 20px rgba(189, 118, 255, 0.5);
}

.content button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #80ff00b3, #00ff45);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.6);
}

.content button:hover {
    background: linear-gradient(90deg, #a0c4ff, #6366f1);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.8);
}

.create-account {
    margin-top: 20px;
    font-size: 1rem;
}

.create-account a {
    color: #00ff2b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.create-account a:hover {
    color: #ffffff;
}

/* -----------------------------
   RESPONSIVE DESIGN FOR OTP FORM
----------------------------- */

.otp-form-container {
    background: rgba(255, 255, 255, 0.2);
    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 rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.otp-form-container button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 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, 0, 0, 0.4);
}

/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
    .otp-form-container {
        padding: 15px 20px;
        max-width: 90%;
        border-radius: 10px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 1.5rem;
        box-sizing: border-box; 
    }

    .otp-form-container h2 {
        font-size: 1.2rem;
    }

    .otp-form-container button {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

/* Media query para pantallas muy pequeñas (como móviles) */
@media (max-width: 480px) {
    .otp-form-container {
        padding: 10px 15px;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
        box-sizing: border-box; 
    }

    .otp-input-container {
        gap: 10px;
    }

    .otp-form-container h2 {
        font-size: 1rem;
    }

    .otp-form-container button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}
