body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    background-color: #FFFFFF;
}

/* Two-column layout using display:table (CSS2.1 - works on any browser) */
.container {
    display: table;
    width: 100%;
    height: 100%;
    table-layout: fixed;
}

/* --- LEFT SIDE: INSTRUCTIONS --- */
.left-panel {
    display: table-cell;
    width: 50%;
    vertical-align: middle;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
}

.poster-wrapper {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
}

.main-logo {
    max-width: 80%;
    height: auto;
    max-height: 80px;
    margin: 0 auto 25px auto;
    display: block;
}

.qr-wrapper {
    width: 170px;
    height: 170px;
    margin: 0 auto 25px auto;
    text-align: center;
}

.qr-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
}

.step-text {
    margin-top: 10px;
    font-size: 1.3em;
    color: #444;
    text-align: left;
    width: 100%;
    line-height: 1.6;
}

.step-text strong {
    color: #cc0000;
}

/* --- RIGHT SIDE: PIN ENTRY --- */
.right-panel {
    display: table-cell;
    width: 50%;
    vertical-align: middle;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
    border-left: 1px solid #f0f0f0;
}

.login-box {
    background-color: #cc0000;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 85%;
    max-width: 500px;
    margin: 0 auto;
    color: white;
}

.login-box h2 {
    margin-top: 0;
    font-size: 2em;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

input[name="pin"] {
    width: 100%;
    padding: 18px;
    font-size: 2.2em;
    text-align: center;
    border: none;
    border-radius: 8px;
    margin-bottom: 25px;
    box-sizing: border-box;
    font-weight: bold;
    letter-spacing: 5px;
    color: #333;
    outline: none;
}

input[name="pin"]:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
}

.btn-imprimir {
    background-color: #000000;
    color: white;
    font-size: 1.6em;
    font-weight: bold;
    padding: 18px 35px;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-imprimir:active {
    background-color: #333;
}

.footer-tos {
    margin-top: 30px;
    text-align: center;
}

.tos-link {
    color: #999;
    text-decoration: underline;
    font-size: 0.9em;
}

.tos-link:hover {
    color: #666;
}

/* Fallback for very small screens (mobile preview) */
@media (max-width: 600px) {
    .container {
        display: block;
    }

    .left-panel,
    .right-panel {
        display: block;
        width: 100%;
        border-left: none;
        padding: 15px;
    }
}