body,
html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html.auth-pending body {
    visibility: hidden;
}

* {
    font-family: 'Barlow', sans-serif;
    user-select: none;
}

#form-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 25px 20px;
    width: 100%;
    min-height: 100%;
    background-color: #ffffff;
    padding-bottom: 80px;
}

.input-container{
    width: 100%;
}

.input-container + .input-container{
    margin-top: 25px;
}

.input-field{
    width: 100%;
}

.input-field > .text, .input-field > .date, .input-field > .file {
    min-width: 150px;
    max-width: 600px;
    width: 100%;
    height: 50px;
    outline: none;
    border: none;
    border-bottom: 2px solid #e0e2ea;
    text-transform: uppercase;
    font-size: 16px;
    color: #23252b;
    font-weight: 500;
    transition: border-color 0.2s ease;
    background: transparent;
}

.input-field > .text:focus, .input-field > .date:focus {
    border-bottom-color: #362FC1;
}

::placeholder {
    color: #aaadba;
    text-transform: none;
}

.input-label{
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #727b8d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#save-btn-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 60px;
    gap: 14px;
}

#save-btn, #reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    border-radius: 14px;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.save-state{
    width: 100%;
    max-width: 340px;
    height: 54px;
    background-color: #362FC1;
    color:#ffffff;
    transition: transform 0.1s ease, filter 0.2s ease;
    box-shadow: 0 4px 12px rgba(54, 47, 193, 0.25);
    letter-spacing: -0.01em;
}

.reset-state{
    width: 100%;
    max-width: 340px;
    height: 54px;
    background-color: #fff;
    color: #dc2626;
    border: 2px solid #fecaca;
    transition: transform 0.1s ease, background 0.2s ease;
    letter-spacing: -0.01em;
}

.success-state{
    width: 54px;
    height: 54px;
    border-radius: 100px;
    background-color: #16a34a;
    color:#ffffff;
    transition: 0.2s ease-in-out;
}

#save-btn:active {
    transform: scale(0.97);
    filter: brightness(0.9);
}

#reset-btn:active {
    transform: scale(0.97);
    background: #fef2f2;
}

/* Signature Tabs */
.signature-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #f3f4f8;
    padding: 4px;
    border-radius: 8px;
}

.sig-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #5e6280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sig-tab.active {
    background: #fff;
    color: #362FC1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sig-panel {
    width: 100%;
}

#footer{
    height: 50px;
    width: 100%;
}

:root {
    --dni-size-multiplier: 1;
}

#dni-image-viewer{
    height: calc(143px * var(--dni-size-multiplier));
    width: calc(115px * var(--dni-size-multiplier));
    object-fit: cover;
    border: 2px solid #e0e2ea;
    margin-top: 20px;
    border-radius: 12px;
}
#dni-firma-viewer{
    height: calc(143px * var(--dni-size-multiplier));
    width: calc(115px * var(--dni-size-multiplier));
    object-fit: contain;
    border: 2px solid #e0e2ea;
    margin-top: 20px;
    border-radius: 12px;
    background: #f7f7fa;
}

.checkbox-list-container {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 50px;
}

.checkbox {
    width: 22px;
    height: 22px;
    accent-color: #362FC1;
    cursor: pointer;
}

.checkbox-list-container label {
    font-size: 18px;
    font-weight: 600;
    color: #23252b;
    cursor: pointer;
}
