/* ===== CONTEXTO OSCURO ===== */

body {
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===== FORMULARIO ===== */

.rf-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
    padding: 20px;
}

.rf-form-container {
    display: flex;
    flex-direction: column;  /* Logo arriba, formulario abajo */
    align-items: center;     /* Centra horizontalmente */
    gap: 20px;               /* Espacio entre logo y formulario */
}

.rf-logo img {
    max-width: 100%;
    height: 150px !important;
    margin: auto;
    display: block;
}

.rf-form {
    max-width: 420px;
    width: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;

    background: #0f0f0f;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    border: 1px solid #1f1f1f;
}

/* Inputs */

.rf-form input {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: #151515;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: .25s;
}

.rf-form input::placeholder {
    color: #fff !important;
}

.rf-form input:focus {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);    
    background: #1a1a1a;
}

/* Checkbox */

.rf-check {
    font-size: 14px;
    color: #ccc;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* BOTÓN */

.rf-btn {
    background: #fff !important;
    color: #000 !important;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: .5px;
    border: none;
    cursor: pointer;
    transition: .25s;
}

.rf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35);    
    color: #000 !important;
}

.rf-btn:active {
    transform: translateY(0);
    box-shadow: none;
    color: #000 !important;
}

/* ===== TARJETA QR ===== */

.rf-card {
    text-align: center;
    max-width: 420px;
    margin: 60px auto;
    padding: 28px;

    background: #0f0f0f;
    border-radius: 18px;
    border: 1px solid #1f1f1f;
    box-shadow: 0 25px 60px rgba(0,0,0,.7);
}

.rf-card h3 {
    margin: 12px 0 6px;
    font-size: 22px;
    font-weight: 600;
}

.rf-card p {
    margin: 6px 0;
    color: #ccc;
}

/* QR */

.rf-qr {
    width: 260px;
    max-width: 100%;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

/* ===== SCANNER ===== */

.rf-scanner {
    text-align: center;
    margin-top: 40px;
    color: #fff;
}

/* ===== ALERTAS DENTRO DEL CONTENIDO ===== */

.rf-ok {
    background: rgba(46,125,50,0.15);
    border: 1px solid #2e7d32;
    padding: 16px;
    border-radius: 10px;
    margin-top: 15px;
    color: #a5d6a7;
}

.rf-error {
    background: rgba(229,57,53,0.15);
    border: 1px solid #e53935;
    padding: 16px;
    border-radius: 10px;
    margin-top: 15px;
    color: #ffcdd2;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 480px) {

    .rf-form,
    .rf-card {
        margin: 30px 16px;
        padding: 22px;
    }

    .rf-qr {
        width: 100%;
    }
}


.rf-desc-gen-qr {
    text-align: left;
    color: #fff !important;
}