/* Contenedor General de Vistas Auth */
.contenedor{
    background-image: none;
}
@media(min-width: 768px){
    .contenedor{
        margin-top: 8rem;
    }
}
.auth-container {
    /* min-height: calc(100vh - 160px); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 40px 20px; */
    /* background-color: var(--bg-surface, #f8fafc); */
    margin-top: 5rem;
    margin-bottom: 5rem;
}
@media(min-width: 769px){
    .auth-container{
        margin-top: 9rem;
        margin-bottom: 9rem;
    }
}

/* Tarjeta de Formulario */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 10px 25px -5px rgba(33, 43, 85, 0.08);
    padding: 36px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(63, 128, 190, 0.1);
    color: var(--paleta-principal-isologo-2, #3f80be);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.auth-header h2 {
    color: var(--paleta-principal-isologo-1, #212b55);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted, #64748b);
    font-size: 14px;
}

/* Formulario e Inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.forgot-link {
    font-size: 12px;
    color: var(--paleta-principal-isologo-2, #3f80be);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--paleta-principal-acento, #e84127);
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary, #0f172a);
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--paleta-principal-isologo-2, #3f80be);
    box-shadow: 0 0 0 3px rgba(63, 128, 190, 0.15);
}

/* Botón Ocultar/Mostrar Contraseña */
.btn-toggle-password {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: var(--paleta-principal-isologo-1, #212b55);
}

.hidden {
    display: none !important;
}

/* Botón Submit */
.btn-block {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--paleta-principal-botones, #e84127);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 6px;
}

.btn-block:hover {
    background-color: #c7331b;
}

.btn-block:active {
    transform: scale(0.99);
}

.btn-block:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Pie de Tarjeta */
.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

.auth-footer a {
    color: var(--paleta-principal-isologo-1, #212b55);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.auth-footer a:hover {
    color: var(--paleta-principal-acento, #e84127);
    text-decoration: underline;
}

/* Contenedor e Inputs OTP (2FA) */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 12px 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--paleta-principal-isologo-1, #212b55);
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--paleta-principal-isologo-2, #3f80be);
    box-shadow: 0 0 0 3px rgba(63, 128, 190, 0.15);
}

.btn-link {
    background: none;
    border: none;
    color: var(--paleta-principal-isologo-1, #212b55);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

.btn-link:hover {
    color: var(--paleta-principal-acento, #e84127);
}