/* =======================================================
   ACCESS SYSTEM — INTEGRADO CON LA ÚLTIMA FRONTERA
======================================================= */

/* =========================
   BASE GLOBAL
========================= */

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Times New Roman", Times, serif;

    background-image:
        linear-gradient(rgba(0, 8, 20, 0.92), rgba(0, 4, 12, 0.95)),
        url('../img/fondo.webp');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: #c4a77d;
}

/* =========================
   CONTENEDOR
========================= */

.container {
    width: min(92vw, 560px);
    margin: 32px auto;
    padding: 28px 22px;
    text-align: center;

    background: rgba(0, 5, 10, 0.70);
    backdrop-filter: blur(3px);

    border: 1px solid rgba(196, 167, 125, 0.25);
    box-sizing: border-box;
}

/* =========================
   TIPOGRAFÍA
========================= */

h1 {
    font-size: 2.2em;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #c4a77d;
}

.intro {
    font-size: 1.05em;
    line-height: 1.8;
    color: #c8aa80;
    margin-bottom: 20px;
}

/* =========================
   INPUTS Y BOTONES (UNIFICADO)
========================= */

input,
button {
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

/* INPUT */

.form-input {
    width: auto;
    min-width: 220px;
    max-width: 85%;

    padding: 10px 16px;

    text-align: center;
    font-size: 15px;

    background: rgba(0, 8, 20, 0.65);
    border: 1px solid rgba(196, 167, 125, 0.35);
    color: #c4a77d;

    outline: none;
    transition: all 0.25s ease;
}

/* BOTÓN BASE */

.form-button,
.botones button {
    padding: 10px 28px;

    background: transparent;
    border: 1px solid rgba(196, 167, 125, 0.35);

    color: #c4a77d;
    letter-spacing: 2px;
    font-size: 0.95em;

    cursor: pointer;
    transition: all 0.25s ease;
}

.form-button:hover,
.botones button:hover {
    background: rgba(196, 167, 125, 0.08);
    border-color: #c4a77d;
    color: #ffffff;
}

/* =========================
   ESTRUCTURA
========================= */

.form-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fila {
    margin-top: 25px;
}

.registro-linea {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    flex-direction: column;
}

.registro-linea span {
    opacity: 0.8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {

    .container {
        width: 94vw;
        margin: 28px auto;
        padding: 28px 18px;
    }

    h1 {
        font-size: 1.75em;
        line-height: 1.2;
    }

    .intro {
        font-size: 1em;
        line-height: 1.6;
    }

    .form-input {
        width: 100%;
        font-size: 16px;
    }

    .form-button {
        width: 100%;
        max-width: 260px;
        font-size: 16px;
    }
}

/* =========================
   MENSAJES Y CÓDIGOS
========================= */

.alerta {
    margin-top: 20px;
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.9;
}

.codigo {
    margin-top: 15px;
    padding: 12px;
    font-size: 1.1em;
    letter-spacing: 2px;

    border: 1px solid rgba(196, 167, 125, 0.35);
    background: rgba(0, 0, 0, 0.4);

    word-break: break-word;
}

.copiado {
    margin-top: 10px;
    font-size: 0.9em;
    color: #ffffff;
}

/* =========================
   CÓDIGO / COPIADO
========================= */

.codigo-box {
    margin-top: 20px;
    margin-bottom: 4px;
    padding: 10px 18px;
    border: 1px dashed #666;
    border-radius: 6px;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    word-break: break-word;
}

/* 🔥 CORRECCIÓN REAL AQUÍ */

.copiado-msg {
    display: block;              /* ← baja debajo */
    margin-top: 12px;            /* ← separación correcta */
    margin-bottom: 25px;

    font-size: 13px;
    padding: 6px 12px;

    border: 1px solid #444;
    border-radius: 6px;

    background-color: rgba(255,255,255,0.05);

    cursor: pointer;
    user-select: none;
    transition: 0.2s;

    width: fit-content;          /* ← no se estira */
    margin-left: auto;
    margin-right: auto;          /* ← centrado limpio */
}

.copiado-msg:active {
    transform: scale(0.95);
}

/* =========================
   MENSAJES
========================= */

.error {
    margin-top: 15px;
    color: #ff5555;
}

.mensaje-bloqueo {
    margin-top: 15px;
    color: #ff5555;
}

.acciones-bloqueo {
    margin-top: 15px;
    display: none;
}

/* =========================
   EMAIL / ACTIVACIÓN
========================= */

.subtitulo {
    margin-bottom: 10px;
}

.info-linea {
    margin-top: 10px;
}

.bloque-correo {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid rgba(196,167,125,0.25);
    border-radius: 8px;
}

.correo-box {
    display: inline-block;

    font-size: 20px;
    font-weight: bold;

    padding: 10px 14px;
    margin-top: 10px;

    border: 1px dashed rgba(196,167,125,0.35);
    border-radius: 6px;

    cursor: pointer;
    word-break: break-word;
}

.instrucciones {
    margin-top: 25px;
    text-align: left;
}

.volver-container {
    margin-top: 15px;
}

.volver-container a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(196,167,125,0.35);
    color: #c4a77d;
    text-decoration: none;
    font-size: 14px;
}
