/* ===============================
   IMPORTS + RESET
================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(247, 247, 247, 0.226), rgba(255, 255, 255, 0.92)),
        url('{{ url_for("static", filename="images/wallpaper.jpg") }}') center/cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
}

/* ===============================
   HEADER
================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 6px 10px;
    background: rgb(255, 244, 252);
    border: 1px solid rgba(219, 82, 107);
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.navbar {
    max-width: 1300px;
    margin: auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    background: rgb(255, 244, 252);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(219, 82, 107);
    box-shadow: 0 12px 45px rgba(5, 0, 5, 0.65);
    transition: 0.35s ease;
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar .logo img {
    width: 230px;
    transition: 0.3s ease;
}




/* ===============================
   POPUP FORM MEJORADO
================================ */

.form-popup {
    position: relative;
    width: 100%;
    max-width: 880px;
    border-radius: 22px;
    overflow: hidden;

    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(18px);

    border: 3px solid rgba(219, 82, 107);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 20px rgba(219,82,107,0.35),
        0 0 40px rgba(255,215,0,0.15);

    margin-top: 10px;

    transform: translateY(35px) scale(0.95);
    opacity: 0;
    pointer-events: none;

    transition: all 0.45s ease;

    z-index: 200;
}

/* CUANDO SE ABRE */

.form-popup.show-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0px) scale(1);
}

/* CONTENIDO */

.form-box {
    display: flex;
    min-height: 490px;
}

/* EFECTO HOVER */

.form-popup:hover {
    box-shadow:
        0 25px 70px rgba(0,0,0,0.8),
        0 0 30px rgba(219,82,107,0.45),
        0 0 50px rgba(255,215,0,0.25);
}
/* ===============================
   PANEL IZQUIERDO (NEGRO + ROSADO + DORADO)
================================ */
.form-details {
    flex: 1;
    position: relative;
    padding: 55px 45px;

    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.96),
        rgba(18,18,18,0.96)
    );

    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;

    overflow: hidden;

    border-right: 2px solid rgba(219,82,107,0.4);
}

/* EFECTO LUZ */
.form-details::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top left, rgba(219,82,107,0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255,215,0,0.12), transparent 55%);

    pointer-events: none;
}

/* TITULO */

.form-details h2 {
    font-size: 2.15rem;
    font-weight: 900;
    z-index: 2;

    color: #ffffff;
    letter-spacing: 0.5px;
}

/* LINEA DECORATIVA */

.form-details h2::after {
    content: "";
    display: block;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        rgba(219,82,107),
        #FFD700
    );

    border-radius: 50px;
    margin-top: 12px;

    box-shadow: 0 0 12px rgba(219,82,107,0.45);
}

/* TEXTO */

.form-details p {
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 600;

    color: rgba(255,255,255,0.85);

    z-index: 2;
}

/* LISTA */

.form-details ul {
    margin-top: 12px;
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 14px;

    z-index: 2;
}

.form-details ul li {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 1rem;
    font-weight: 600;

    color: rgba(255,255,255,0.9);
}

/* ICONO CHECK */

.form-details ul li::before {
    content: "✔";

    width: 26px;
    height: 26px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 0.9rem;
    font-weight: 900;

    background: rgba(219,82,107,0.15);
    border: 2px solid rgba(219,82,107,0.6);

    color: #FFD700;

    box-shadow: 0 0 14px rgba(219,82,107,0.25);
}
/* ===============================
   PANEL DERECHO (BLANCO PREMIUM)
================================ */
.form-content {
    flex: 1;
    padding: 55px 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;

    background: rgba(255,255,255,0.98);

    border-left: 2px solid rgba(219,82,107,0.25);

    box-shadow: inset 0 0 25px rgba(0,0,0,0.03);
}

/* TITULO */

.form-content h2 {
    text-align: center;
    margin-bottom: 32px;

    font-size: 2.1rem;
    font-weight: 900;

    color: #111;

    letter-spacing: 0.5px;
    position: relative;
}

/* LINEA DECORATIVA */

.form-content h2::after {

    content: "";
    display: block;

    width: 80%;;
    height: 4px;

    margin: 12px auto 0;

    border-radius: 50px;

    background: linear-gradient(
        90deg,
        rgba(219,82,107),
        #FFD700
    );

    box-shadow: 0 0 10px rgba(219,82,107,0.35);
}
/* ===============================
   INPUTS MEJORADOS
================================ */

.input-field {
    position: relative;
    margin-bottom: 24px;
}

.input-field input {
    width: 100%;
    padding: 17px 16px;

    border-radius: 14px;
    border: 2px solid rgba(0,0,0,0.15);

    background: rgba(255,255,255,0.98);

    font-size: 1rem;
    font-weight: 700;

    outline: none;
    color: #111;

    transition: all 0.25s ease;
}

/* EFECTO HOVER */

.input-field input:hover{
    border-color: rgba(219,82,107,0.4);
}

/* CUANDO SE ESCRIBE */

.input-field input:focus {
    border-color: rgba(219,82,107);

    box-shadow:
        0 0 0 3px rgba(219,82,107,0.18),
        0 0 12px rgba(255,215,0,0.18);
}

/* LABEL */

.input-field label {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    background: rgba(255,255,255,0.98);

    padding: 0 7px;

    font-size: 0.9rem;
    font-weight: 700;

    color: #555;

    pointer-events: none;
    transition: 0.25s ease;
}

/* LABEL CUANDO INPUT ACTIVO */

.input-field input:focus ~ label,
.input-field input:valid ~ label {

    top: -11px;

    font-size: 0.78rem;
    font-weight: 900;

    color: rgba(219,82,107);
}

/* ===============================
   BOTÓN
================================ */

form button {
    width: 100%;
    padding: 16px;

    border-radius: 14px;
    border: none;

    background: rgba(219,82,107);
    color: #ffffff;

    font-weight: 900;
    font-size: 1.05rem;

    cursor: pointer;

    letter-spacing: 0.6px;

    transition: all 0.3s ease;

    box-shadow: 0 10px 25px rgba(219,82,107,0.35);
}

/* HOVER (AMARILLO) */

form button:hover {

    background: #FFD700;
    color: #111;

    transform: translateY(-3px);

    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* CUANDO LO PRESIONAS */

form button:active{
    transform: translateY(-1px) scale(0.97);
}
/* ===============================
   LINK ABAJO
================================ */

.bottom-link {
    margin-top: 26px;
    text-align: center;

    font-size: 0.95rem;
    font-weight: 700;

    color: rgba(0,0,0,0.75);
}

.bottom-link a {
    display: inline-block;
    margin-top: 10px;

    padding: 12px 22px;
    border-radius: 14px;

    background: #FFD700;
    color: #111;

    font-weight: 900;
    text-decoration: none;

    border: 2px solid #FFD700;

    transition: all 0.25s ease;
}

/* HOVER */

.bottom-link a:hover {

    background: rgba(219,82,107);
    border-color: rgba(219,82,107);

    color: #fff;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.18),
        0 0 12px rgba(219,82,107,0.35);
}

/* CLICK */

.bottom-link a:active{
    transform: translateY(-1px) scale(0.97);
}

/* ===============================
   CLOSE BUTTON (MEJORADO)
================================ */

.close-btn {
    position: absolute;
    top: 16px;
    right: 18px;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: rgba(219,82,107,0.12);
    border: 1px solid rgba(219,82,107,0.25);

    display: grid;
    place-items: center;

    font-size: 1.7rem;
    cursor: pointer;

    color: rgba(219,82,107);

    transition: all 0.3s ease;
}

/* HOVER */

.close-btn:hover {

    background: #FFD700;
    border-color: #FFD700;

    color: #111;

    transform: rotate(90deg) scale(1.1);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.18),
        0 0 12px rgba(255,215,0,0.35);
}

/* CLICK */

.close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .form-box {
        flex-direction: column;
    }

    .form-details {
        display: none;
    }

    .form-content {
        padding: 45px 30px;
    }

    .form-popup {
        margin-top: 90px;
    }
}


form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===============================
   PASSWORD FIELD + ICON (MEJORADO)
================================ */

.password-field {
    position: relative;
}

/* INPUT */
.password-field input {
    padding-right: 52px !important;
}

/* ICONO OJO */
.password-field .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    cursor: pointer;

    font-size: 1.5rem;

    color: rgba(219,82,107,0.75);

    width: 38px;
    height: 38px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.25s ease;

    user-select: none;
}

/* HOVER */

.password-field .toggle-password:hover {

    background: #FFD700;
    color: #111;

    transform: translateY(-50%) scale(1.1);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.15),
        0 0 10px rgba(255,215,0,0.35);
}

/* CLICK */

.password-field .toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

/* ===============================
   LABEL MEJOR POSICIONADO
================================ */

.password-field label {
    left: 16px !important;
    padding: 0 8px !important;
}

/* Cuando se sube el label */
.password-field input:focus ~ label,
.password-field input:valid ~ label {
    top: -13px !important;
    font-size: 0.78rem;
    font-weight: 900;
    color: rgba(219,82,107);
}

/* ===============================
   SEPARACIÓN ENTRE INPUTS
================================ */

#form-nueva-pass .input-field {
    margin-bottom: 26px;
}

/* ===============================
   TEXTO AYUDA (MEJORADO)
================================ */

.pass-help {
    font-size: 0.92rem;
    font-weight: 800;

    color: rgba(0,0,0,0.75);

    margin-top: -6px;
    margin-bottom: 22px;

    text-align: center;
    line-height: 1.55;

    padding: 12px 14px;
    border-radius: 14px;

    background: rgba(219,82,107,0.10);
    border: 1px solid rgba(219,82,107,0.25);

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===============================
   VALID INPUT STATES (PRO UI)
================================ */

/* INPUT CORRECTO */
.input-field input.valid {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.20) !important;
}

/* INPUT INCORRECTO */
.input-field input.invalid {
    border: 2px solid rgba(219,82,107) !important;
    box-shadow: 0 0 0 4px rgba(219,82,107,0.20) !important;
}