/* ============================= */
/* ESTILOS GENERALES (ESCRITORIO) */
/* ============================= */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    font-family: Arial, sans-serif;
}

.background {
    position: fixed;
    inset: 0;
    background: url('/static/imagenes/logo-civica2.png') center center no-repeat;
    background-size: 45vmin;
    filter: blur(10px);
    opacity: 0.75;
    z-index: -1;
}

.panel {
    background: white;
    width: 320px;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.panel h2 {
    margin-bottom: 20px;
    font-weight: normal;
    color: #333;
}

.panel input,
.panel select,
.panel textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.panel button {
    width: 100%;
    padding: 10px;
    background: #EE880E;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.panel button:hover {
    background: #ffaf1b;
}

/* Mensaje de error */
.panel .error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

.btn-success {
    background-color: #EE880E !important;
    border-color: #EE880E !important;
}

.btn-success:hover {
    background-color: #FF5038 !important;
    border-color: #FF5038 !important;
}

/* ============================= */
/* ESTILOS MÓVIL (RESPONSIVE) */
/* ============================= */
@media (max-width: 480px) {
    body {
        display: flex;
        /* Recupera el centrado vertical */
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        /* Que ocupe toda la altura disponible */
        padding: 10px;
        /* Espacio desde bordes */
        margin: 0;
    }

    .panel {
        width: 95%;
        /* Ocupa casi todo el ancho */
        max-width: 420px;
        /* Limita ancho en móviles grandes */
        padding: 20px;
        margin: 0 auto;
        /* Centrado horizontal */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .panel h2 {
        font-size: 20px;
    }

    .panel input,
    .panel select,
    .panel textarea,
    .panel button {
        font-size: 16px;
        padding: 12px;
    }

    .background {
        background-size: 50%;
        /* Imagen más pequeña */
        filter: blur(4px);
    }
}

#signatureCanvas {
    width: 100%;
    height: 220px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: white;
    touch-action: none;
    display: block;
}

.qr-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

.qr-topbar {
    display: flex;
    justify-content: flex-end;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
}

.qr-close {
    background: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.qr-reader-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#reader {
    width: 100vw;
    max-width: 100vw;
}

#reader video {
    width: 100% !important;
    height: 100vh !important;
    object-fit: cover;
}

.qr-footer {
    text-align: center;
    color: white;
    padding: 14px;
    background: rgba(0, 0, 0, 0.4);
} 
.login-logo {
    width: 90px;
    height: auto;
}