.page-auth-externo {
    background:
        linear-gradient(rgba(15, 47, 68, 0.72), rgba(30, 95, 116, 0.72)),
        url("") center center / cover no-repeat;
    font-family: "Segoe UI", Arial, sans-serif;
}

.externo-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.externo-card {
    width: 100%;
    max-width: 410px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 28px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    text-align: center;
    position: relative;
}

.externo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #0f2f44, #2f8f5b);
}

.login-title {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: #16384d;
    margin-bottom: 8px;
}

.login-subtitle {
    display: block;
    font-size: 0.92rem;
    color: #667785;
    margin-bottom: 18px;
}

.field {
    margin-bottom: 14px;
}

.externo-input,
.externo-input.ui-inputfield,
.login-password-input {
    width: 100% !important;
    box-sizing: border-box;
    height: 48px;
    border: 1px solid #d8e0e7 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    background: #fff !important;
    color: #243746 !important;
}

.externo-input:focus,
.login-password-input:focus {
    border-color: #1e5f74 !important;
    box-shadow: 0 0 0 3px rgba(30, 95, 116, 0.14) !important;
    outline: none !important;
}

.login-password-group {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.login-password-input {
    flex: 1 1 auto !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

.btn-eye {
    min-width: 52px;
    width: 52px;
    height: 48px;
    border: 1px solid #d8e0e7;
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: #f7fafc;
    color: #35506b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-eye:hover {
    background: #eef4f8;
    color: #16384d;
}

.btn-block {
    width: 100% !important;
    display: block !important;
}

.externo-btn,
.externo-btn.ui-button {
    width: 100% !important;
    min-height: 48px;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg, #0f2f44, #1e88e5) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(30, 136, 229, 0.22);
}

.externo-btn:hover,
.externo-btn.ui-button:hover {
    filter: brightness(1.04);
}

.forgot-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #1e5f74;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.logos {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logos img {
    max-width: 46%;
    height: auto;
}

.footer-text {
    margin-top: 16px;
    font-size: 0.78rem;
    color: #738391;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .externo-card {
        max-width: 100%;
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .externo-card::before {
        border-radius: 16px 16px 0 0;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .login-subtitle {
        font-size: 0.86rem;
    }
}

/* =========================
   IDENTIFICAÇÃO DO AMBIENTE EXTERNO
   ========================= */
.login-context-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.login-context-badge.externo {
    background: #fff4e5;
    color: #a15c00;
    border: 1px solid #ffd8a8;
}

.switch-access-link {
    display: block;
    margin-top: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #a15c00;
    text-decoration: none;
}

.switch-access-link:hover {
    text-decoration: underline;
}

.externo-card::before {
    background: linear-gradient(90deg, #a15c00, #2f8f5b);
}
