/* =========================================================
   VENTANA DE ALERTA DEL LOGIN
   ========================================================= */

.login-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 7, 18, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.login-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-alert-card {
    position: relative;

    width: min(420px, 100%);
    padding: 38px 32px 30px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(20, 28, 48, 0.98),
            rgba(8, 14, 29, 0.98)
        );

    border: 1px solid rgba(101, 130, 255, 0.35);
    border-radius: 20px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(79, 105, 255, 0.15);

    transform: scale(0.85) translateY(20px);
    animation: loginAlertShow 0.35s ease forwards;
}

.login-alert-icon {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    border: 3px solid #ff5364;
    border-radius: 50%;

    color: #ff5364;
    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 1;

    box-shadow:
        0 0 0 8px rgba(255, 83, 100, 0.08),
        0 0 25px rgba(255, 83, 100, 0.2);
}

.login-alert-icon span {
    transform: translateY(-2px);
}

.login-alert-card h2 {
    margin: 0 0 12px;

    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.login-alert-card p {
    margin: 0 0 26px;

    color: #aeb8cc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.login-alert-button {
    width: 100%;
    min-height: 48px;

    padding: 12px 20px;

    border: 0;
    border-radius: 12px;

    color: #ffffff;
    background: linear-gradient(135deg, #526eff, #784dff);

    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 12px 30px rgba(82, 110, 255, 0.3);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.login-alert-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 35px rgba(82, 110, 255, 0.4);
}

.login-alert-button:active {
    transform: translateY(0);
}

.login-alert-close {
    position: absolute;
    top: 13px;
    right: 16px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    color: #8993a7;
    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.login-alert-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.login-alert-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.login-alert-overlay.closing .login-alert-card {
    transform: scale(0.92) translateY(10px);
    transition: transform 0.2s ease;
}

@keyframes loginAlertShow {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 480px) {
    .login-alert-card {
        padding: 34px 22px 24px;
        border-radius: 16px;
    }

    .login-alert-icon {
        width: 68px;
        height: 68px;
        font-size: 42px;
    }

    .login-alert-card h2 {
        font-size: 18px;
    }

    .login-alert-card p {
        font-size: 16px;
    }
}

/* */

/* =========================================================
   SELECTOR DEL TIPO DE CUENTA
   ========================================================= */

.account-type-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-type-option {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 72px;
    padding: 12px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.account-type-option:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 124, 255, 0.55);
}

.account-type-option.active {
    border-color: #667cff;
    background: rgba(102, 124, 255, 0.13);
}

.account-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 10px;
    background: rgba(102, 124, 255, 0.12);

    font-size: 20px;
}

.account-type-content {
    display: flex;
    flex-direction: column;
}

.account-type-content strong {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.account-type-content small {
    color: #8f9bb2;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
}


/* =========================================================
   CAMPOS EMPRESARIALES
   ========================================================= */

/* El atributo hidden siempre debe ocultar el elemento */
[hidden] {
    display: none !important;
}

.company-fields {
    width: 100%;
}


/* =========================================================
   ALERTA PERSONALIZADA
   ========================================================= */

.login-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 7, 18, 0.82);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.login-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-alert-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.login-alert-card {
    position: relative;

    width: min(420px, 100%);
    padding: 38px 32px 30px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(20, 28, 48, 0.98),
            rgba(8, 14, 29, 0.98)
        );

    border: 1px solid rgba(101, 130, 255, 0.35);
    border-radius: 20px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(79, 105, 255, 0.15);

    animation: loginAlertShow 0.35s ease forwards;
}

.login-alert-icon {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    border: 3px solid #ff5364;
    border-radius: 50%;

    color: #ff5364;
    font-size: 45px;
    font-family: Arial, sans-serif;

    box-shadow:
        0 0 0 8px rgba(255, 83, 100, 0.08),
        0 0 25px rgba(255, 83, 100, 0.2);
}

.login-alert-card.alert-success .login-alert-icon {
    color: #39d98a;
    border-color: #39d98a;

    box-shadow:
        0 0 0 8px rgba(57, 217, 138, 0.08),
        0 0 25px rgba(57, 217, 138, 0.2);
}

.login-alert-card h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
}

.login-alert-card p {
    margin: 0 0 26px;

    color: #aeb8cc;

    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

.login-alert-button {
    width: 100%;
    min-height: 48px;

    border: 0;
    border-radius: 12px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #526eff,
            #784dff
        );

    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;

    cursor: pointer;
}

.login-alert-close {
    position: absolute;
    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    color: #8993a7;
    background: transparent;

    font-size: 27px;

    cursor: pointer;
}

.login-alert-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

@keyframes loginAlertShow {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 480px) {

    .account-type-selector {
        grid-template-columns: 1fr;
    }

    .login-alert-card {
        padding: 34px 22px 24px;
    }
}