/* ================================================================
   MIC V2.0 - LOGIN
   Estilos visuales ajustados según especificación de diseño
   ================================================================ */

/* ================================================================
   RESET Y BASE
   ================================================================ */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    background: #041b34;
}

body.login-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #041b34;
    font-family: "Open Sans", Arial, sans-serif;
}

/* ================================================================
   CONTENEDOR PRINCIPAL Y FONDO
   ================================================================ */

.mic-login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-image: url("/assets/img/login/bg-login-mic-v2.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #041b34;
}

/* ================================================================
   CAPA AZUL GLOBAL SOBRE LA IMAGEN (OVERLAY)
   ================================================================ */

.mic-background-overlay {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(5, 36, 68, 0.38) 0%,
        rgba(4, 29, 57, 0.34) 50%,
        rgba(2, 17, 36, 0.48) 100%
    );
}

/* ================================================================
   LOGO SUPERIOR IZQUIERDO
   ================================================================ */

.mic-brand-header {
    position: absolute;
    z-index: 10;
    top: 28px;
    left: 45px;
}

.mic-brand-link {
    display: inline-block;
    text-decoration: none !important;
}

.mic-logo-header {
    display: block;
    width: 215px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ================================================================
   MIC SUPERIOR DERECHA
   ================================================================ */

.mic-platform-brand {
    position: absolute;
    z-index: 10;
    top: 28px;
    right: 48px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.mic-platform-name {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mic-platform-divider {
    width: 2.5px;
    height: 67px;
    margin: 0 14px;
    background: #ff7900;
}

.mic-platform-description {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10.5px;
    padding: 10px 12px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.88);
}

/* ================================================================
   CENTRADO LOGIN
   ================================================================ */

.mic-login-center {
    position: absolute;
    z-index: 20;
    top: 48.5%;
    left: 50%;
    width: 360px;
    max-width: 90vw;
    transform: translate(-50%, -50%);
}

/* ================================================================
   CARD GLASS
   ================================================================ */

.mic-login-card {
    position: relative;
    width: 100%;
    padding: 24px 26px 18px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(200, 225, 245, 0.55);
    background: linear-gradient(
        145deg,
        rgba(115, 145, 177, 0.28) 0%,
        rgba(40, 61, 87, 0.36) 100%
    );
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.mic-login-card::before {
    display: none;
}

.mic-login-card > * {
    position: relative;
    z-index: 2;
}

/* ================================================================
   LOGO CENTRAL
   ================================================================ */

.mic-card-logo {
    width: 172px;
    margin: 0 auto 12px;
    text-align: center;
}

.mic-card-logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ================================================================
   LÍNEA DIVISORIA ENTRE LOGO E INICIAR SESIÓN
   ================================================================ */

.mic-card-divider {
    display: block;
    width: 82%;
    height: 1px;
    margin: 14px auto 16px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.36) 18%,
        rgba(255, 255, 255, 0.36) 82%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 0;
}

/* ================================================================
   TÍTULO
   ================================================================ */

.mic-login-title {
    margin-bottom: 15px;
    text-align: center;
}

.mic-login-title h1 {
    margin: 0 0 3px;
    padding: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mic-login-title p {
    margin: 0;
    font-size: 12.5px;
    font-weight: 300;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.68);
}

/* ================================================================
   CAMPOS / INPUTS
   ================================================================ */

.mic-form-group {
    margin-bottom: 10px;
}

.mic-input-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
}

.mic-form-control {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 38px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    outline: none;
    background: rgba(20, 42, 68, 0.34);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffffff;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.mic-form-control::placeholder {
    color: rgba(255, 255, 255, 0.60);
    opacity: 1;
}

.mic-form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.60);
}

.mic-form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.60);
}

.mic-form-control:focus {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(24, 50, 78, 0.44);
    box-shadow: 0 0 0 2px rgba(45, 137, 220, 0.20);
    color: #ffffff;
}

/* Neutralizar autofill de Chrome/Edge para evitar fondo blanco */
.mic-form-control:-webkit-autofill,
.mic-form-control:-webkit-autofill:hover,
.mic-form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(18, 38, 62, 0.88) inset !important;
    box-shadow: 0 0 0 1000px rgba(18, 38, 62, 0.88) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Iconos izquierda */
.mic-input-icon {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 12px;
    width: 18px;
    transform: translateY(-50%);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    pointer-events: none;
}

/* ================================================================
   CONTRASEÑA
   ================================================================ */

.mic-password-input {
    padding-right: 40px;
}

.mic-password-toggle {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    outline: none !important;
    background: transparent;
    font-size: 13px;
    line-height: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.mic-password-toggle:hover,
.mic-password-toggle:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* ================================================================
   CAPTCHA
   ================================================================ */

.mic-captcha-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin-bottom: 14px;
}

.mic-captcha-input {
    flex: 1 1 auto;
    min-width: 0;
}

.mic-captcha-box {
    display: flex;
    align-items: center;
    flex: 0 0 150px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background: rgba(228, 235, 242, 0.94);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mic-captcha-refresh {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-right: 1px solid rgba(11, 54, 96, 0.18);
    text-decoration: none !important;
    font-size: 15px;
    color: #0b3660 !important;
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.mic-captcha-refresh:hover,
.mic-captcha-refresh:focus {
    background: rgba(255, 255, 255, 0.45);
    color: #062340 !important;
}

.mic-captcha-image {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.mic-captcha-image img {
    display: block;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    border: 0;
    background: transparent;
}

.mic-captcha-image img.hidden {
    display: none !important;
}

/* ================================================================
   BOTÓN INGRESAR
   ================================================================ */

.mic-login-actions {
    margin: 0 0 14px;
}

.mic-login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 174, 66, 0.85);
    border-radius: 4px;
    outline: none;
    background: linear-gradient(180deg, #ff9800 0%, #ff7900 100%);
    box-shadow: 0 2px 14px rgba(255, 121, 0, 0.35);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #ffffff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.mic-login-button i {
    position: static;
    margin: 0;
    transform: none;
    font-size: 11px;
}

.mic-login-button:hover,
.mic-login-button:focus {
    color: #ffffff;
    filter: brightness(1.06);
    box-shadow: 0 3px 18px rgba(255, 121, 0, 0.50);
}

.mic-login-button:active {
    transform: translateY(1px);
}

/* ================================================================
   RESTABLECER CONTRASEÑA
   ================================================================ */

.mic-forgot-password {
    margin: 0 0 14px;
    text-align: center;
}

.mic-forgot-password a {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    transition: color .2s, border-color .2s;
}

.mic-forgot-password a:hover,
.mic-forgot-password a:focus {
    border-color: #ff9200;
    color: #ffffff;
}

/* ================================================================
   PARTE INFERIOR DEL CARD
   ================================================================ */

.mic-card-message {
    text-align: center;
    margin-top: 4px;
}

.mic-card-message span {
    display: block;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
}

.mic-card-orange-line {
    width: 28px;
    height: 2px;
    margin: 8px auto 0;
    background: #ff8500;
    border-radius: 1px;
}

/* ================================================================
   ALERT ERROR
   ================================================================ */

.mic-login-alert {
    position: relative;
    margin: 0 0 10px;
    padding: 8px 32px 8px 10px;
    border: 1px solid rgba(255, 211, 120, 0.60);
    border-radius: 4px;
    background: rgba(255, 177, 38, 0.18);
    font-size: 11px;
    color: #ffffff;
    text-align: center;
}

.mic-login-alert .close {
    position: absolute;
    top: 3px;
    right: 8px;
    color: #ffffff;
    opacity: 0.8;
    text-shadow: none;
}

/* ================================================================
   TEXTO LATERAL DERECHO (CON PANEL OSCURO TRANSLÚCIDO)
   ================================================================ */

.mic-side-message {
    position: absolute;
    z-index: 10;
    top: 54%;
    right: 6.5%;
    transform: translateY(-50%);
    background: rgba(3, 23, 45, 0.38);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 22px 26px 20px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
    color: #ffffff;
}

.mic-side-text {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.20;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mic-orange-line {
    width: 44px;
    height: 3px;
    margin-top: 16px;
    background: #ff8500;
    border-radius: 1px;
}

/* ================================================================
   VALORES INFERIOR IZQUIERDA (ICONOS DE LÍNEA BLANCOS)
   ================================================================ */

.mic-values {
    position: absolute;
    z-index: 10;
    bottom: 30px;
    left: 45px;
    display: flex;
    gap: 32px;
    color: #ffffff;
}

.mic-value-item {
    position: relative;
    width: 88px;
    text-align: center;
}

.mic-value-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    right: -16px;
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.20);
}

.mic-value-icon {
    height: 26px;
    margin-bottom: 4px;
    font-size: 23px;
    line-height: 26px;
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.mic-value-icon i {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    font-size: 22px;
    line-height: 1;
}

.mic-value-title {
    margin-bottom: 2px;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.mic-value-description {
    font-size: 6px;
    font-weight: 300;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.3px;
}

/* ================================================================
   MENSAJE INFERIOR DERECHA
   ================================================================ */

.mic-bottom-message {
    position: absolute;
    z-index: 10;
    right: 45px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.mic-bottom-line {
    width: 44px;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
}

.mic-bottom-text {
    font-size: 10.5px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 2.8px;
    text-align: left;
}

/* ================================================================
   FOOTER
   ================================================================ */

.mic-footer {
    position: absolute;
    z-index: 10;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    color: rgba(255, 255, 255, 0.50);
}

.mic-footer p {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.2;
}

/* ================================================================
   RESPONSIVE - NOTEBOOK (1366x768)
   ================================================================ */

@media screen and (max-width: 1366px) {
    .mic-brand-header {
        top: 22px;
        left: 35px;
    }

    .mic-logo-header {
        width: 195px;
    }

    .mic-platform-brand {
        top: 22px;
        right: 38px;
    }

    .mic-platform-name {
        font-size: 29px;
    }

    .mic-login-center {
        width: 345px;
        top: 48%;
    }

    .mic-login-card {
        padding: 22px 24px 16px;
    }

    .mic-side-message {
        right: 5%;
        padding: 18px 22px 16px;
    }

    .mic-side-text {
        font-size: 22px;
    }

    .mic-values {
        left: 35px;
        bottom: 26px;
        gap: 26px;
    }

    .mic-bottom-message {
        right: 35px;
        bottom: 25px;
    }
}

/* ================================================================
   PANTALLAS CON POCA ALTURA (<= 768px)
   ================================================================ */

@media screen and (max-height: 768px) and (min-width: 769px) {
    .mic-brand-header {
        top: 18px;
        left: 32px;
    }

    .mic-logo-header {
        width: 180px;
    }

    .mic-platform-brand {
        top: 18px;
        right: 32px;
    }

    .mic-platform-name {
        font-size: 42px;
    }

    .mic-platform-divider {
        height: 67px;
    }

    .mic-login-center {
        top: 48%;
        width: 335px;
    }

    .mic-login-card {
        padding: 18px 22px 14px;
    }

    .mic-card-logo {
        width: 155px;
        margin-bottom: 10px;
    }

    .mic-login-title {
        margin-bottom: 11px;
    }

    .mic-login-title h1 {
        font-size: 20px;
    }

    .mic-form-group {
        margin-bottom: 8px;
    }

    .mic-input-wrapper,
    .mic-form-control,
    .mic-password-toggle,
    .mic-captcha-box {
        height: 38px;
    }

    .mic-password-toggle {
        line-height: 38px;
    }

    .mic-captcha-image img {
        height: 36px;
    }

    .mic-captcha-row {
        margin-bottom: 10px;
    }

    .mic-login-button {
        height: 38px;
    }

    .mic-login-actions {
        margin-bottom: 10px;
    }

    .mic-forgot-password {
        margin-bottom: 10px;
    }

    .mic-values {
        bottom: 20px;
        left: 32px;
        gap: 22px;
    }

    .mic-side-message {
        top: 52%;
        right: 4.5%;
        padding: 16px 20px 14px;
    }

    .mic-side-text {
        font-size: 24px;
    }

    .mic-bottom-message {
        bottom: 20px;
        right: 32px;
    }

    .mic-footer {
        bottom: 6px;
    }
}

/* ================================================================
   TABLET
   ================================================================ */

@media screen and (max-width: 991px) {
    .mic-login-page {
        background-position: 35% center;
    }

    .mic-platform-brand,
    .mic-side-message,
    .mic-values,
    .mic-bottom-message {
        display: none;
    }

    .mic-brand-header {
        top: 25px;
        left: 30px;
    }

    .mic-logo-header {
        width: 200px;
    }

    .mic-login-center {
        width: 350px;
    }
}

/* ================================================================
   MÓVIL
   ================================================================ */

@media screen and (max-width: 767px) {
    body.login-container {
        overflow: auto;
    }

    .mic-login-page {
        min-height: 680px;
        height: 100vh;
        background-position: 31% center;
    }

    .mic-background-overlay {
        background: rgba(4, 25, 48, 0.52);
    }

    .mic-brand-header {
        top: 18px;
        left: 50%;
        transform: translateX(-50%);
    }

    .mic-logo-header {
        width: 185px;
    }

    .mic-login-center {
        top: 52%;
        width: calc(100% - 34px);
        max-width: 360px;
    }

    .mic-login-card {
        padding: 22px 20px;
    }

    .mic-footer {
        bottom: 12px;
    }
}

/* ================================================================
   MÓVIL PEQUEÑO
   ================================================================ */

@media screen and (max-width: 420px) {
    .mic-login-page {
        min-height: 640px;
    }

    .mic-login-center {
        width: calc(100% - 24px);
    }

    .mic-login-card {
        padding: 20px 16px;
    }

    .mic-card-logo {
        width: 155px;
    }

    .mic-login-title h1 {
        font-size: 20px;
    }

    .mic-login-title p {
        font-size: 11.5px;
    }

    .mic-captcha-row {
        gap: 6px;
    }

    .mic-captcha-box {
        flex-basis: 116px;
    }

    .mic-captcha-refresh {
        flex-basis: 36px;
    }

    .mic-form-control {
        padding-left: 36px;
    }

    .mic-input-icon {
        left: 10px;
    }
}

/* ================================================================
   RECUPERAR CONTRASEÑA (MIC V2.0)
   ================================================================ */

.mic-recovery-center {
    width: 410px;
    max-width: 92vw;
}

.mic-recovery-card {
    padding: 24px 28px 18px;
}

.mic-recovery-description {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.mic-code-input {
    letter-spacing: 5px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.mic-resend-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffaa33;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color .2s ease;
}

.mic-resend-link:hover,
.mic-resend-link:focus {
    color: #ffc266;
    outline: none;
}

/* Checklist de seguridad para nueva contraseña */
.mic-password-checklist {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(10, 28, 48, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mic-checklist-title {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.88);
}

.mic-checklist-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
}

.mic-checklist-items li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
    transition: color .2s ease;
}

.mic-checklist-items li i {
    font-size: 10px;
    width: 12px;
    text-align: center;
}

.mic-checklist-items li.text-success {
    color: #4cd964 !important;
    font-weight: 500;
}

.mic-checklist-items li.text-danger {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Alertas estilizadas dentro de la card MIC */
.mic-recovery-alert {
    position: relative;
    margin: 0 0 12px;
    padding: 9px 14px;
    border-radius: 4px;
    font-size: 11.5px;
    line-height: 1.35;
    text-align: center;
}

.mic-recovery-alert-danger {
    border: 1px solid rgba(255, 110, 110, 0.60);
    background: rgba(220, 53, 69, 0.25);
    color: #ffd2d2;
}

.mic-recovery-alert-success {
    border: 1px solid rgba(76, 217, 100, 0.60);
    background: rgba(40, 167, 69, 0.25);
    color: #d4edda;
}

.mic-login-card .alert {
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 11.5px;
    line-height: 1.35;
    border: 1px solid transparent;
}

.mic-login-card .alert-danger {
    background: rgba(220, 53, 69, 0.25) !important;
    border-color: rgba(255, 110, 110, 0.55) !important;
    color: #ffd4d4 !important;
}

.mic-login-card .alert-success {
    background: rgba(40, 167, 69, 0.25) !important;
    border-color: rgba(76, 217, 100, 0.55) !important;
    color: #d4edda !important;
}

/* ================================================================
   LABELS Y ESTADOS PARA FORMULARIO DE CAMBIO DE CLAVE
   ================================================================ */

.mic-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 5px;
    text-align: left;
}

.border-success-color {
    border-color: #4cd964 !important;
    box-shadow: 0 0 0 2px rgba(76, 217, 100, 0.30) !important;
}

.border-danger-color {
    border-color: #ff6e6e !important;
    box-shadow: 0 0 0 2px rgba(255, 110, 110, 0.30) !important;
}

.mic-login-button:disabled,
.mic-login-button[disabled] {
    opacity: 0.50 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.4) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ================================================================
   USUARIO EN SESIÓN TEMPORAL (CAMBIAR CLAVE)
   ================================================================ */

.mic-user-header-bar {
    position: absolute;
    z-index: 20;
    top: 25px;
    right: 45px;
    display: flex;
    align-items: center;
}

.mic-user-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(3, 23, 45, 0.45);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 6px 14px 6px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mic-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b3660 0%, #17548d 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    flex-shrink: 0;
}

.mic-user-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 240px;
}

.mic-user-welcome {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.mic-user-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mic-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #ffcccc !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .2s ease;
    margin-left: 4px;
}

.mic-logout-btn:hover,
.mic-logout-btn:focus {
    background: rgba(239, 68, 68, 0.55);
    border-color: rgba(248, 113, 113, 0.85);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

@media screen and (max-width: 991px) {
    .mic-user-header-bar {
        top: 20px;
        right: 25px;
    }
}

@media screen and (max-width: 767px) {
    .mic-user-header-bar {
        position: static;
        margin: 15px auto 0;
        justify-content: center;
        width: 100%;
    }

    .mic-user-info-chip {
        max-width: 90%;
    }

    .mic-user-details {
        max-width: 160px;
    }
}

/* ================================================================
   SWEETALERT2 MODERNO Y ELEGANTE
   ================================================================ */

.swal2-container {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 15px !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-container.swal2-in {
    background-color: rgba(4, 25, 48, 0.72) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
}

.swal2-modal,
.swal2-show {
    width: 430px !important;
    max-width: 92vw !important;
    min-height: 0 !important;
    min-height: auto !important;
    height: auto !important;
}

.swal2-modal {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    padding: 26px 26px 22px !important;
    border: none !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.swal2-modal.swal2-show {
    -webkit-animation: swalModernIn .22s ease-out forwards !important;
    animation: swalModernIn .22s ease-out forwards !important;
}

.swal2-modal.swal2-hide {
    -webkit-animation: swalModernOut .15s ease-in forwards !important;
    animation: swalModernOut .15s ease-in forwards !important;
    opacity: 0 !important;
}

@keyframes swalModernIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes swalModernOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
}

.swal2-modal .swal2-icon {
    order: 1 !important;
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 66px !important;
    margin: 2px auto 10px !important;
    border-width: 3px !important;
}

.swal2-modal h2 {
    order: 2 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0b3660 !important;
    line-height: 1.35 !important;
    margin: 6px 0 6px !important;
    padding: 0 !important;
    display: block !important;
}

.swal2-modal .swal2-content {
    order: 3 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    color: #4a5d73 !important;
    margin: 4px 0 18px !important;
    padding: 0 6px !important;
}

.swal2-modal .swal2-content:last-child {
    margin-bottom: 4px !important;
}

.swal2-modal .swal2-spacer {
    display: none !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.swal2-modal .swal2-styled {
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    border-radius: 6px !important;
    padding: 9px 24px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
}

/* BOTÓN CANCELAR (A LA IZQUIERDA: ORDER 10) */
.swal2-modal .swal2-cancel,
.swal2-modal .cancel-class {
    order: 10 !important;
    flex: 0 0 auto !important;
    display: inline-block;
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 9px 22px !important;
    margin: 6px 8px 2px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
}

.swal2-modal .swal2-cancel:hover,
.swal2-modal .cancel-class:hover {
    background: #cbd5e1 !important;
    color: #1e293b !important;
    transform: translateY(-1px) !important;
}

/* BOTÓN CONFIRMAR (A LA DERECHA: ORDER 11) */
.swal2-modal .swal2-confirm,
.swal2-modal .confirm-class {
    order: 11 !important;
    flex: 0 0 auto !important;
    display: inline-block;
    background: linear-gradient(180deg, #ff9800 0%, #ff7900 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 9px 24px !important;
    margin: 6px 8px 2px !important;
    box-shadow: 0 4px 14px rgba(255, 121, 0, 0.35) !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
}

.swal2-modal .swal2-confirm:hover,
.swal2-modal .confirm-class:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 6px 20px rgba(255, 121, 0, 0.50) !important;
    transform: translateY(-1px) !important;
}

.swal2-modal .swal2-confirm:active,
.swal2-modal .confirm-class:active {
    transform: translateY(1px) !important;
}

/* OCULTAR BOTONES CUANDO SWEETALERT INDICA NO MOSTRARLOS */
.swal2-modal button[style*="display: none"],
.swal2-modal .swal2-confirm[style*="display: none"],
.swal2-modal .swal2-cancel[style*="display: none"],
.swal2-modal .confirm-class[style*="display: none"],
.swal2-modal .cancel-class[style*="display: none"],
.swal2-modal .swal2-styled[style*="display: none"] {
    display: none !important;
}

/* Iconos de SweetAlert2 con diseño refinado */
.swal2-icon {
    width: 68px !important;
    height: 68px !important;
    margin: 0 auto 12px !important;
    border-width: 3px !important;
}

.swal2-icon.swal2-success {
    border-color: #22c55e !important;
}

.swal2-icon.swal2-success .swal2-placeholder {
    width: 68px !important;
    height: 68px !important;
    border: 3px solid rgba(34, 197, 94, 0.25) !important;
}

.swal2-icon.swal2-success .swal2-line {
    background-color: #22c55e !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-error .swal2-line {
    background-color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    font-size: 44px !important;
    line-height: 68px !important;
}

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    font-size: 44px !important;
    line-height: 68px !important;
}