* { box-sizing: border-box; margin: 0; padding: 0; }
html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    text-align: center;
    font-family: Helvetica, Arial, Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.42857;
    color: #002F5B;
    background-color: #FFF;
}
a { color: #002F5B; text-decoration: none; }
a:hover { text-decoration: underline; }

.content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.logo-header {
    max-width: 300px;
    height: auto;
}

.login-label {
    font-weight: bold;
    font-size: 14px;
    color: #002F5B;
    display: block;
    text-align: left;
    margin-bottom: 4px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.42857;
    color: #002F5B;
}

.login-input {
    -webkit-box-shadow: none;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid #EEF0F3;
    background: transparent;
    outline: none;
}

.login-input:focus {
    border-bottom: 1px solid #FF4813;
}

.submit-button {
    width: 100%;
    border: 1px solid #FF4813;
    background: none;
    border-radius: 5px;
    color: #FF4813;
    font-size: 1.2em;
    padding: 8px 2em;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: #FF4813;
    color: #FFF;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: wait;
}

hr {
    display: block;
    margin: 0.5em auto;
    border-style: solid;
    border-width: 2px;
    border-color: #EEF0F3;
    width: 95%;
}

.footer {
    background-color: #FFF;
    padding: 20px;
    text-align: center;
}

.logo-footer {
    max-width: 250px;
    height: auto;
}

.footer-text {
    width: 80%;
    margin: 0 auto;
    color: #002F5B;
}

.error-box { display: none; }
.error-box.active {
    display: block;
    background: #FFF3F3;
    border: 1px solid #E60012;
    border-radius: 8px;
    padding: 12px 16px;
    color: #E60012;
    font-size: 13px;
}

/* ===== DATOS / TOKEN PAGE ===== */
.datos-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mat-input {
    width: 90%;
    padding: 8px 0;
    font-size: 16px;
    color: #002F5B;
    border: 0;
    border-bottom: 1px solid #EEF0F3;
    outline: none;
    background: transparent;
}

.mat-input:focus {
    border-bottom: 2px solid #FF4813;
}

.mat-input.error {
    border-bottom: 2px solid #E60012;
}

.mat-label {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #FF4813;
    margin-bottom: 2px;
    margin-top: 16px;
}

.error-banner {
    background: #FFF3F3;
    border: 1px solid #E60012;
    border-radius: 4px;
    padding: 10px 16px;
    color: #E60012;
    font-size: 13px;
    margin: 16px 0;
    text-align: center;
}

.info-text {
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    color: #002F5B;
    margin: 24px 0;
    line-height: 1.6;
}

.btn-token {
    width: 90%;
    border: 1px solid #002F5B;
    background: none;
    border-radius: 5px;
    color: #002F5B;
    font-size: 1.1em;
    font-weight: 600;
    padding: 10px 2em;
    cursor: pointer;
    margin-top: 32px;
    transition: background 0.2s;
}

.btn-token:hover {
    background: #002F5B;
    color: #FFF;
}

.btn-token:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ===== TOKEN VALIDATION PAGE ===== */
.token-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.token-title {
    color: #002F5B;
    font-size: 1.3em;
    margin-bottom: 16px;
}

.token-welcome {
    font-weight: bold;
    color: #002F5B;
    text-align: left;
    margin-bottom: 8px;
}

.token-input {
    width: 60%;
    padding: 6px 0;
    font-size: 16px;
    color: #002F5B;
    border: 0;
    border-bottom: 1px solid #EEF0F3;
    outline: none;
    background: transparent;
    text-align: center;
}

.token-input:focus {
    border-bottom: 1px solid #002F5B;
}

.btn-submit-token {
    width: 50%;
    padding: 6px 2em;
    border: 1px solid #002F5B;
    background: none;
    border-radius: 5px;
    color: #002F5B;
    font-size: 1.2em;
    cursor: pointer;
    margin: 8px 0;
}

.btn-submit-token:hover {
    background: #002F5B;
    color: #FFF;
}
