/* ==========================================================================
   SAMCI - Autenticacao / Landing Page Styles
   Design System Corporativo - Perfeitamente Centralizado, Balanceado e Simétrico
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Reset Estrutural e Centralização Absoluta no Viewport                      */
/* -------------------------------------------------------------------------- */
body:has(.auth-landing-wrapper) {
    margin-bottom: 0 !important;
}

body:has(.auth-landing-wrapper) .main,
.main:has(.auth-landing-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body:has(.auth-landing-wrapper) main[role="main"],
main:has(.auth-landing-wrapper) {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-landing-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* Glow Sutil de Fundo (Backlight) */
.auth-backlight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px;
    height: 850px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

/* Container Centralizado - Proporção Ampla */
.auth-landing-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/* Hero Banner Compacto e Proporcional                                        */
/* -------------------------------------------------------------------------- */
.auth-hero-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, #ffffff 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.07);
    transition: all 0.25s ease;
}

.auth-hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.auth-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.auth-hero-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Botão de Acesso Principal (CTA) */
.btn-auth-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.72rem 1.65rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #1d4ed8;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-auth-login .btn-arrow {
    transition: transform 0.25s ease;
    font-size: 0.85rem;
}

.btn-auth-login:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: #ffffff !important;
}

.btn-auth-login:hover .btn-arrow {
    transform: translateX(4px);
}

.auth-sauron-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.785rem;
    color: #64748b;
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Faixa de Destaques Metodológicos (3 Pilares)                               */
/* -------------------------------------------------------------------------- */
.auth-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.95rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.auth-metric-card:hover {
    transform: translateY(-2px);
    border-color: #0d6efd;
    box-shadow: 0 6px 14px -3px rgba(13, 110, 253, 0.12);
}

.metric-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.auth-metric-card:hover .metric-icon-wrapper {
    transform: scale(1.08);
}

.icon-blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.icon-indigo {
    background-color: #eef2ff;
    color: #4f46e5;
}

.icon-emerald {
    background-color: #ecfdf5;
    color: #059669;
}

.metric-info {
    min-width: 0;
}

.metric-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.metric-subtitle {
    display: block;
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: 2px;
}

/* -------------------------------------------------------------------------- */
/* Cards de Conteúdo (Simétricos e Balanceados)                               */
/* -------------------------------------------------------------------------- */
.auth-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.85rem 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-content-card:hover {
    transform: translateY(-3px);
    border-color: #0d6efd;
    box-shadow: 0 10px 22px -4px rgba(13, 110, 253, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.auth-card-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background-color: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.auth-content-card:hover .auth-card-icon-badge {
    background-color: #0d6efd;
    color: #ffffff;
    transform: scale(1.05);
}

.auth-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
    margin-bottom: 0;
}

.auth-card-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.auth-card-text strong {
    color: #1e293b;
}

/* -------------------------------------------------------------------------- */
/* Lista de Vantagens Compacta (Card 2)                                       */
/* -------------------------------------------------------------------------- */
.auth-advantages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-advantage-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.885rem;
    color: #475569;
    line-height: 1.4;
}

.auth-advantage-item i {
    font-size: 0.95rem;
    color: #10b981;
    flex-shrink: 0;
}

.auth-advantage-item span {
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Rodapés dos Cards com Badges Simétricos                                    */
/* -------------------------------------------------------------------------- */
.auth-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.95rem;
    margin-top: auto;
}

.auth-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    width: fit-content;
}

.badge-coso {
    color: #2563eb;
    background-color: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-governanca {
    color: #059669;
    background-color: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* -------------------------------------------------------------------------- */
/* MODO ESCURO ([data-theme="dark"])                                          */
/* -------------------------------------------------------------------------- */
[data-theme="dark"] .auth-backlight-glow {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
}

[data-theme="dark"] .auth-hero-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, #1e293b 100%);
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .auth-hero-title {
    color: #f8fafc;
}

[data-theme="dark"] .auth-hero-subtitle {
    color: #cbd5e1;
}

[data-theme="dark"] .auth-sauron-hint {
    color: #94a3b8;
}

[data-theme="dark"] .auth-metric-card {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .auth-metric-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 16px -3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .metric-title {
    color: #f8fafc;
}

[data-theme="dark"] .metric-subtitle {
    color: #cbd5e1;
}

[data-theme="dark"] .icon-blue {
    background-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .icon-indigo {
    background-color: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}

[data-theme="dark"] .icon-emerald {
    background-color: rgba(5, 150, 105, 0.2);
    color: #34d399;
}

[data-theme="dark"] .auth-content-card {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .auth-content-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.45), 0 0 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .auth-card-icon-badge {
    background-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .auth-content-card:hover .auth-card-icon-badge {
    background-color: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .auth-card-title {
    color: #f8fafc;
}

[data-theme="dark"] .auth-card-text {
    color: #cbd5e1;
}

[data-theme="dark"] .auth-card-text strong {
    color: #f8fafc;
}

[data-theme="dark"] .auth-advantage-item {
    color: #cbd5e1;
}

[data-theme="dark"] .auth-advantage-item i {
    color: #34d399;
}

[data-theme="dark"] .auth-card-footer {
    border-top-color: #334155;
}

[data-theme="dark"] .badge-coso {
    color: #60a5fa;
    background-color: rgba(37, 99, 235, 0.16);
    border-color: rgba(59, 130, 246, 0.28);
}

[data-theme="dark"] .badge-governanca {
    color: #34d399;
    background-color: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.28);
}

/* -------------------------------------------------------------------------- */
/* Responsividade                                                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .auth-landing-wrapper {
        padding: 1.5rem 0.75rem;
        justify-content: flex-start;
    }

    .auth-hero-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-hero-title {
        font-size: 1.25rem;
    }

    .btn-auth-login {
        width: 100%;
    }

    .auth-sauron-hint {
        justify-content: center;
        width: 100%;
    }
}
