/* CONTENEDOR GENERAL */
.qrapp-auth-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
}

.qrapp-auth-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.10);
    border: 1px solid #ececec;
}

.qrapp-auth-title {
    text-align: center;
    margin: 0 0 22px;
    font-size: 28px;
    line-height: 1.2;
    color: #222;
    font-weight: 700;
}

.qrapp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qrapp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qrapp-field label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.qrapp-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    transition: all 0.25s ease;
    background: #fff;
    color: #222;
}

.qrapp-field input:focus {
    border-color: #c95d12;
    box-shadow: 0 0 0 4px rgba(201, 93, 18, 0.12);
}

/* BOTONES */
.qrapp-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qrapp-btn-main {
    background: #c95d12;
    color: #fff;
}

.qrapp-btn-main:hover {
    background: #a94d0f;
    transform: translateY(-1px);
}

.qrapp-btn-secondary {
    margin-top: 16px;
    background: #fff4eb;
    color: #a94d0f;
    border: 2px solid #c95d12;
}

.qrapp-btn-secondary:hover {
    background: #ffe8d7;
}

/* MENSAJES */
.qrapp-message {
    margin-top: 4px;
    font-size: 14px;
    min-height: 22px;
}

.qrapp-message.success {
    color: #17833b;
}

.qrapp-message.error {
    color: #c62828;
}

.qrapp-logged-box {
    max-width: 460px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f7fff8;
    border: 1px solid #d8efdc;
    color: #1b5e20;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* MODAL */
.qrapp-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qrapp-modal.active {
    display: flex;
}

.qrapp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.qrapp-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px 24px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
    z-index: 2;
    animation: qrappFadeUp 0.25s ease;
}

@keyframes qrappFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qrapp-close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f4f4f4;
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.qrapp-close-modal:hover {
    background: #e9e9e9;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .qrapp-auth-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .qrapp-auth-title {
        font-size: 24px;
    }

    .qrapp-btn {
        padding: 14px 16px;
        font-size: 14px;
    }

    .qrapp-modal-content {
        padding: 26px 16px 20px;
        border-radius: 18px;
    }
}