/* SGC — tela de login */

body.sgc-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
    color: #1a2332;
    background-color: #0c1524;
    background-image:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(37, 99, 168, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(30, 91, 140, 0.25) 0%, transparent 50%),
        linear-gradient(165deg, #0f1c2e 0%, #0a111c 100%);
}

.sgc-login-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px 16px;
}

.sgc-login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.sgc-login-brand {
    background: linear-gradient(145deg, #1a6aad 0%, #124a73 48%, #0d3555 100%);
    padding: 36px 32px 28px;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.sgc-login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.sgc-login-brand .sgc-mark {
    position: relative;
    z-index: 1;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgc-login-brand .sgc-brand-logo {
    display: block;
    height: 64px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    /* fundo preto do ícone some sobre o gradiente do header */
    mix-blend-mode: screen;
}

.sgc-login-brand .sgc-brand-name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.sgc-login-brand p {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
    letter-spacing: 0.02em;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.sgc-login-body-area {
    padding: 28px 32px 24px;
}

.sgc-field {
    margin-bottom: 20px;
}

.sgc-field:last-of-type {
    margin-bottom: 24px;
}

.sgc-field label,
.sgc-field .ui-outputlabel {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #5c6b7a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sgc-input-icon {
    position: relative;
    width: 100%;
}

.sgc-input-icon > .pi.field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8b99a8;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

/* Texto, senha e dropdown — mesma altura e padding para o ícone */
.sgc-input-icon .ui-inputfield,
.sgc-input-icon input.ui-password-input,
.sgc-field .ui-selectonemenu {
    width: 100% !important;
    min-height: 44px;
    border: 1px solid #d8e0e8 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #1a2332 !important;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fafbfc !important;
}

.sgc-input-icon .ui-inputfield,
.sgc-input-icon input.ui-password-input {
    padding: 11px 40px 11px 42px !important;
}

.sgc-input-icon .ui-password {
    display: block;
    width: 100%;
}

/* Botão mostrar/ocultar senha do PrimeFaces */
.sgc-input-icon .ui-password .ui-password-toggle-icon,
.sgc-input-icon .ui-password button.ui-password-toggle {
    right: 10px;
    color: #8b99a8;
}

.sgc-field .ui-selectonemenu {
    padding-left: 4px;
}

.sgc-field .ui-selectonemenu .ui-selectonemenu-label {
    padding: 11px 12px 11px 38px !important;
    line-height: 1.25;
    color: #1a2332;
    font-weight: 500;
}

.sgc-field .ui-selectonemenu .ui-selectonemenu-trigger {
    border-radius: 0 10px 10px 0;
    width: 2.5rem;
}

.sgc-input-icon .ui-inputfield:focus,
.sgc-input-icon input.ui-password-input:focus,
.sgc-field .ui-selectonemenu.ui-state-focus {
    border-color: #1e6aad !important;
    box-shadow: 0 0 0 3px rgba(30, 106, 173, 0.18) !important;
    outline: none;
    background: #ffffff !important;
}

.sgc-input-icon .ui-inputfield::placeholder,
.sgc-input-icon input.ui-password-input::placeholder {
    color: #5c6b7a;
    opacity: 1;
}

.sgc-login-submit.ui-button {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #1e6aad 0%, #165a8f 100%) !important;
    border: none !important;
    padding: 13px 20px !important;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px !important;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(22, 90, 143, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.sgc-login-submit.ui-button .ui-button-icon-left {
    position: static;
    margin: 0;
    font-size: 16px;
}

.sgc-login-submit.ui-button .ui-button-text {
    padding: 0;
}

.sgc-login-submit.ui-button:enabled:hover {
    background: linear-gradient(180deg, #1a5f98 0%, #124a73 100%) !important;
    box-shadow: 0 4px 14px rgba(22, 90, 143, 0.45);
}

.sgc-login-submit.ui-button:enabled:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(22, 90, 143, 0.3);
}

.sgc-login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
    font-size: 11px;
    color: #9aa8b5;
    letter-spacing: 0.02em;
}

@media (max-width: 420px) {
    .sgc-login-brand,
    .sgc-login-body-area {
        padding-left: 22px;
        padding-right: 22px;
    }

    .sgc-login-brand .sgc-brand-name {
        font-size: 28px;
    }

    .sgc-login-brand .sgc-brand-logo {
        height: 52px;
        max-width: 60px;
    }
}
