/* ****************************************************************************************
 * ⚡ ARQUIVO: identity-public.css
 * --------------------------------------------------------------------------------------
 * 🎯 OBJETIVO     : Padronizar a linguagem visual das páginas públicas do Identity com a
 *                   identidade FrotiX, usando tipografia Outfit, cartões claros,
 *                   gradientes institucionais e áreas de ação consistentes.
 *
 * 📥 ENTRADAS     : Classes CSS aplicadas em _Layout.cshtml e nas páginas públicas do
 *                   Identity.
 *
 * 📤 SAÍDAS       : Aparência visual consistente para login, cadastro, logout e páginas
 *                   de confirmação.
 *
 * 🔗 CHAMADA POR  : Areas/Identity/Pages/_Layout.cshtml e páginas públicas do Identity.
 *
 * 🔄 CHAMA        : Variáveis globais de frotix.css e Font Awesome Duotone já carregados.
 *
 * 📦 DEPENDÊNCIAS : frotix.css, Google Fonts Outfit, Bootstrap utilitário.
 *
 * 📝 CACHE         : Revisão 2026-06-28 para priorização no layout público.
 **************************************************************************************** */

.identity-public-layout {
    min-height: 100vh;
}

.identity-public-layout .page-inner {
    background:
        radial-gradient(circle at top left, rgba(255, 107, 53, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(50, 93, 136, 0.35), transparent 32%),
        linear-gradient(145deg, #1f2740 0%, #253554 48%, #182033 100%);
}

.identity-public-layout .page-content-wrapper {
    min-height: 100vh;
}

.identity-public-shell {
    background:
        radial-gradient(circle at bottom center, rgba(255, 255, 255, 0.08), transparent 30%),
        url('/css/img/svg/pattern-1.svg') no-repeat center bottom fixed;
    background-size: cover;
}

.identity-public-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.identity-public-content-login {
    padding-top: 0.65rem;
    padding-bottom: 1rem;
    margin-top: 1.25rem;
    margin-left: -2rem;
}

.identity-public-header {
    padding: 1.15rem 1.5rem;
    backdrop-filter: blur(10px);
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.identity-logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 1px;
    overflow: visible;
    padding-top: 0.35rem;
    padding-bottom: 0.2rem;
}

.identity-logo-link {
    display: inline-flex;
    margin: 0;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.identity-logo-mark-frame {
    width: clamp(72px, 5.4vw, 92px);
    height: clamp(84px, 6.2vw, 106px);
    flex-shrink: 0;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.identity-logo-mark {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(4px) scale(1.85);
    transform-origin: center center;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
    display: block;
}

.identity-logo-copy {
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
}

.identity-logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
}

.identity-logo-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.identity-header-actions {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.identity-header-hint {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.74);
}

.identity-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.identity-header-link:hover,
.identity-header-link:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.identity-auth-hero {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #ffffff;
}

.identity-login-hero {
    max-width: 1200px;
    margin: 0;
    text-align: left;
}

.identity-login-brand {
    margin-bottom: 1.35rem;
}

.identity-login-brand img {
    width: min(980px, 100%);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 44px rgba(6, 12, 24, 0.34));
}

.identity-login-grid {
    align-items: flex-start;
}

.identity-login-shell {
    max-width: 1320px;
    margin: 0 auto;
}

.identity-login-copy-column,
.identity-login-card-column {
    padding-left: 0;
    padding-right: 0;
}

.identity-login-copy {
    max-width: 720px;
    text-align: left;
}

.identity-login-copy-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.identity-login-card-column {
    display: flex;
    justify-content: flex-end;
    padding-top: 7.75rem;
}

.identity-login-card-column .identity-auth-card {
    width: min(100%, 460px);
}

.identity-login-copy .identity-status-list {
    margin-top: 0;
}

.identity-readonly-input {
    background: #eef3f8;
    color: #5b6676;
    font-weight: 700;
}

.identity-readonly-textarea {
    min-height: 64px;
    line-height: 1.25;
    padding-top: 0.75rem;
    resize: none;
    overflow: hidden;
}

.identity-readonly-textarea::placeholder {
    color: var(--ftx-placeholder-color, #A3ACB5);
    opacity: 1;
    white-space: pre-line;
}

.identity-register-access-row .identity-auth-form-label {
    min-height: 3.25rem;
    align-items: flex-start;
}

.identity-register-access-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.identity-register-access-row .identity-auth-form-hint {
    margin-bottom: 0;
    flex-grow: 1;
}

.identity-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.95rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.identity-auth-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
}

.identity-auth-subtitle {
    margin: 1rem auto 0;
    max-width: 620px;
    font-size: 1.06rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.94);
}

.identity-login-hero .identity-auth-subtitle {
    max-width: 760px;
    margin-left: 0;
    margin-right: 0;
}

.identity-auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 28px 50px rgba(10, 18, 36, 0.32);
    overflow: hidden;
}

.identity-auth-card-body {
    padding: 2rem;
}

.identity-auth-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.identity-auth-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.18), rgba(50, 93, 136, 0.12));
    color: #325d88;
    flex: 0 0 auto;
}

.identity-auth-card-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #22324d;
}

.identity-auth-card-text {
    margin: 0.4rem 0 0;
    color: #5b6676;
    line-height: 1.65;
}

.identity-auth-form-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #325d88;
}

.identity-auth-form-hint {
    display: block;
    margin-top: 0.45rem;
    color: #6a7280;
    font-size: 0.86rem;
    line-height: 1.55;
}

.identity-auth-card .form-control {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(50, 93, 136, 0.18);
    box-shadow: none;
}

.identity-auth-card .form-control:focus {
    border-color: rgba(50, 93, 136, 0.45);
    box-shadow: 0 0 0 0.18rem rgba(50, 93, 136, 0.14);
}

.identity-auth-password-wrap {
    position: relative;
}

.identity-auth-password-wrap .form-control {
    padding-right: 2.75rem;
}

.identity-auth-password-wrap .identity-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0.25rem;
    line-height: 1;
    cursor: pointer;
    font-size: 1.05rem;
}

.identity-auth-password-wrap .identity-auth-password-toggle:focus-visible {
    outline: 2px solid rgba(50, 93, 136, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
}

.identity-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.identity-auth-actions .btn {
    min-width: 210px;
}

.identity-auth-inline-link {
    color: #325d88;
    font-weight: 700;
    text-decoration: none;
}

.identity-auth-inline-link:hover,
.identity-auth-inline-link:focus {
    color: #22324d;
    text-decoration: none;
}

.identity-status-list {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.identity-status-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    box-shadow: 0 18px 28px rgba(8, 14, 28, 0.12);
}

.identity-status-item:first-child {
    margin-top: 0;
}

.identity-status-item i {
    margin-top: 0.15rem;
    color: #ff6b35;
}

/* A lista nasceu para o hero escuro (texto branco). Dentro do cartão claro — usado por
   RegisterConfirmation, StatusCadastro, ResetPasswordConfirmation e Lockout — o branco
   sobre branco deixava o texto ilegível, dando a impressão de tela sem conteúdo.
   Aqui ela adota a mesma paleta clara de .identity-register-note. */
.identity-auth-card .identity-status-item {
    border-color: rgba(50, 93, 136, 0.12);
    background: linear-gradient(145deg, rgba(255, 243, 236, 0.96), rgba(235, 241, 249, 0.96));
    color: #2f405b;
    box-shadow: 0 10px 20px rgba(8, 14, 28, 0.06);
}

.identity-auth-card .identity-status-item strong {
    color: #22324d;
}

.identity-register-note {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 243, 236, 0.96), rgba(235, 241, 249, 0.96));
    border: 1px solid rgba(50, 93, 136, 0.12);
    color: #2f405b;
}

.identity-register-note strong {
    color: #22324d;
}

.identity-register-note i {
    color: #ff6b35;
}

.identity-register-note p:last-child {
    margin-bottom: 0;
}

.identity-public-footer {
    padding: 1rem 1.5rem 1.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.74);
    font-family: 'Outfit', sans-serif;
}

.identity-public-footer strong {
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .identity-public-header {
        padding: 1rem;
    }

    .identity-public-content,
    .identity-public-content-login {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .identity-login-card-column {
        padding-top: 0;
    }

    .identity-login-hero {
        text-align: center;
        margin: 0 auto 1.25rem;
    }

    .identity-login-hero .identity-auth-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .identity-login-copy {
        max-width: none;
        margin: 0 auto 2rem;
        text-align: center;
    }

    .identity-auth-card-body {
        padding: 1.5rem;
    }

    .identity-header-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    .identity-logo-mark-frame {
        width: 66px;
        height: 78px;
    }

    .identity-logo-mark {
        transform: translateY(3px) scale(1.78);
    }

    .identity-logo-title {
        font-size: 1.05rem;
    }

    .identity-logo-subtitle {
        font-size: 0.72rem;
    }

    .identity-header-hint {
        width: 100%;
        text-align: right;
    }

    .identity-header-link,
    .identity-auth-actions .btn {
        width: 100%;
    }
}
