/* ---------------- GENERAL ---------------- */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #e2ddd0;
}

/* ---------------- LOGIN CONTENEDOR ---------------- */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ---------------- LOGIN BOX (MÁS GRANDE REAL) ---------------- */
.login-box {
    background-color: #d3d3d3;
    width: 100%;
    max-width: 560px;        /* 🔥 MÁS GRANDE que antes */
    padding: 55px 45px;      /* 🔥 MÁS ESPACIO INTERNO */
    border-radius: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
    color: #2b2b2b;
}

/* ---------------- BORDE NEÓN ---------------- */
.login-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    background: linear-gradient(
        90deg,
        #0a579e,
        #d63451,
        #ffff02,
        #5dd638,
        #3d2aeb,
        #3399ff,
        #00ffff
    );
    background-size: 600% 100%;
    z-index: -1;
    animation: animate-border 6s linear infinite;
}

@keyframes animate-border {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

.login-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background-color: #4c5c7500;
    z-index: -1;
}

/* ---------------- LOGO ---------------- */
.login-box .logo {
    width: 260px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 1px white);
}

/* ---------------- TABS ---------------- */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.tab {
    margin: 0 18px;
    color: #ccc;
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    background: none;
    border: none;
    font-size: 16px;
}

.tab.active {
    color: #00cfff;
    border-bottom-color: #00cfff;
}

/* ---------------- FORM ---------------- */
.login-box form {
    width: 100%;
}

/* ---------------- INPUTS ---------------- */
input {
    width: 100%;
    padding: 15px 18px;     /* 🔥 más alto y cómodo */
    margin: 12px 0;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
}

/* ---------------- PASSWORD CON OJO ---------------- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 55px;    /* 🔥 espacio real para el ojo */
}

/* Ojo */
.password-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 18px;
}

/* ---------------- BOTÓN ---------------- */
button {
    width: 100%;
    padding: 15px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    font-size: 17px;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #005bb5;
    transform: scale(1.03);
}

/* ---------------- MENSAJES ---------------- */
.msg {
    color: #ff8080;
    font-size: 14px;
    margin-top: 10px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 600px) {
    .login-box {
        padding: 45px 25px;
    }

    .login-box .logo {
        width: 220px;
    }
}
/* =========================
   MOBILE – MÁS GRANDE Y MÁS CERCA
========================= */
@media (max-width: 600px) {

    .login-container {
        width: 95%;
        padding: 10px;
        align-items: flex-start;
    }

    .login-box {
        width: 92%;          /* 🔥 MÁS ESTRECHO */
        max-width: 380px;    /* 🔥 CLAVE: lo hace verse GRANDE */
        padding: 40px 22px;  /* compacto */
        border-radius: 30px;
        margin-top: 20px;
    }

    .login-box .logo {
        width: 200px;
        margin-bottom: 15px;
    }

    input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .password-wrapper input {
        padding-right: 48px;
    }

    .password-wrapper .toggle-password {
        right: 14px;
        font-size: 17px;
    }

    button {
        padding: 14px;
        font-size: 16px;
    }
}

/* =========================
   CONTORNO NEGRO EN TABS
========================= */
.tab {
    color: #ffffff; /* texto blanco */
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

/* Tab activa */
.tab.active {
    color: #ffffff;
    border-bottom-color: #0066cc;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}
.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
}

.forgot-password a:hover {
    text-decoration: underline;
}
.login-links {
    margin-top: 12px;
    text-align: right;
    font-size: 0.9em;
}

.login-links a {
    color: #0066cc;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links span {
    margin: 0 6px;
    color: #555;
}
