﻿/* ------------------------------------------------------------------
   tema-sah.css  v3  |  Identidade SAH Capital sobre o tema padrao FactaConsult
   Bloco 1: variaveis globais (todas as paginas), modo claro e modo escuro.
   Bloco 2: tela de login (.tela-login2), sempre escura.
   Reverter: remover a linha <link ... tema-sah.css> de Views/Shared/_Layout.cshtml
             (backup original em _Layout.cshtml.bak)
   ------------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==================================================================
   BLOCO 1  |  TEMA GLOBAL
   ================================================================== */

/* ---- modo claro (padrao) ---- */
:root{
  --cor-1:#0A111B;   /* cabecalho, botoes, rodape, titulos de formulario */
  --cor-2:#C79E41;   /* notificacoes e destaques */
  --cor-3:#1B2533;   /* fonte do cabecalho de tabela */
  --cor-4:#EFE8DA;   /* fundo de cabecalho e rodape de tabela, informativos */
  --cor-5:#F2EEE7;   /* fonte sobre o azul marinho */
  --cor-6:#1A1F26;   /* fonte do conteudo */
  --cor-7:#8D9AA8;   /* apoio */
  --cor-8:#F6F3EE;   /* linhas alternadas, cartoes, campo inativo */

  --branco:#FFFFFF;
  --cinza:#E6E2DA;
  --preto:#0A111B;
  --cinza-preto:#1B2533;
  --borda:#C9C2B6;
  --sombra:rgba(10,17,27,.10);

  --fundo-body:#E6E2DA;
}

/* ---- modo escuro (botao da propria aplicacao) ---- */
.modo-escuro:root{
  --cor-1:#111C2A;   /* rodape */
  --cor-2:#C79E41;   /* botoes e titulos em ouro */
  --cor-3:#16202E;   /* cabecalho de tabela, modal, informativos */
  --cor-4:#1B2736;
  --cor-5:#F2EEE7;
  --cor-6:#111C2A;   /* cartoes */
  --cor-7:#E4DFD6;   /* fonte do conteudo e do cabecalho */
  --cor-8:#0D1622;

  --branco:#111C2A;
  --cinza:#8D9AA8;
  --preto:#0A111B;           /* fundo do conteudo */
  --cinza-preto:#0D1622;     /* fundo do body, campo inativo, linha alternada */
  --borda:rgba(242,238,231,.16);
  --sombra:rgba(0,0,0,.45);

  --fundo-cabecalho:#0A111B;
  --fundo-janelas-abertas:#111C2A;
  --fundo-dashboard-menu:#0D1622;
}

/* ---- logotipo do cabecalho (a pasta img nao existe; substitui a imagem quebrada) ---- */
img[alt="Logotipo"]{content:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 100'><defs><clipPath id='c'><path transform='matrix(1,0,0,-1,0,100)' d='M0 100H350V0H0Z'/></clipPath></defs><g clip-path='url(%23c)'><path transform='matrix(1,0,0,-1,169.86,41.92)' d='M0 0C-.733 3.207-2.093 5.49-4.08 6.85-6.403 8.313-9.117 9.035-11.86 8.92-15.804 9.073-19.549 7.183-21.77 3.92-22.868 2.307-23.664 .508-24.12-1.39-24.636-3.47-24.891-5.607-24.88-7.75-24.883-9.824-24.665-11.892-24.23-13.92-23.836-15.839-23.101-17.671-22.06-19.33-21.037-20.926-19.635-22.245-17.98-23.17-16.001-24.209-13.784-24.712-11.55-24.63-10.051-24.65-8.561-24.385-7.16-23.85-5.874-23.351-4.694-22.615-3.68-21.68-2.67-20.735-1.822-19.63-1.17-18.41-.474-17.109 .044-15.719 .37-14.28H4.08C3.672-16.062 3.058-17.79 2.25-19.43 1.464-21.03 .393-22.474-.91-23.69-2.293-24.956-3.91-25.941-5.67-26.59-7.773-27.344-9.996-27.706-12.23-27.66-14.799-27.731-17.348-27.182-19.66-26.06-21.646-25.037-23.359-23.556-24.66-21.74-26.006-19.843-26.974-17.704-27.51-15.44-28.116-12.949-28.414-10.393-28.4-7.83-28.475-4.727-28.025-1.633-27.07 1.32-26.311 3.618-25.05 5.719-23.38 7.47-21.831 9.014-19.94 10.172-17.86 10.85-15.601 11.587-13.236 11.948-10.86 11.92-9.046 11.934-7.239 11.678-5.5 11.16-3.933 10.688-2.468 9.928-1.18 8.92 .105 7.894 1.172 6.623 1.96 5.18 2.82 3.575 3.396 1.832 3.66 .03Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,186.75,53.79)' d='M0 0H14.75L7.37 19.79ZM-9.31-14.86 5.49 22.79H9.49L23.93-14.87H20.25L15.95-3.04H-1.2L-5.65-14.86Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,227.34,49)' d='M0 0C1.506-.014 3.01 .09 4.5 .31 5.691 .474 6.837 .876 7.87 1.49 8.787 2.06 9.528 2.874 10.01 3.84 10.564 5.063 10.824 6.399 10.77 7.74 10.905 9.807 10.038 11.813 8.44 13.13 6.893 14.377 4.43 15 1.05 15H-8.16V0ZM-11.72-19.65V18H2.04C4.073 18.052 6.1 17.768 8.04 17.16 9.462 16.705 10.755 15.916 11.81 14.86 12.72 13.911 13.386 12.754 13.75 11.49 14.12 10.189 14.305 8.843 14.3 7.49 14.372 5.677 13.929 3.881 13.02 2.31 12.196 .979 11.056-.128 9.7-.91 8.263-1.723 6.697-2.281 5.07-2.56 3.354-2.872 1.614-3.03-.13-3.03H-8.19V-19.65Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,0,100)' d='M249 69H252.56V31.349999H249Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,258.88,31)' d='M0 0H27.41V-3H15.48V-37.65H11.92V-3H0Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,297.22,53.79)' d='M0 0H14.78L7.38 19.79ZM-9.31-14.86 5.49 22.79H9.49L23.93-14.87H20.27L15.93-3.05H-1.22L-5.67-14.87Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,326.25,68.65)' d='M0 0V37.65H3.56V3.04H23.75V.04Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,0,100)' d='M128.42 100H130.72V0H128.42Z' fill='%23C0392B'/><path transform='matrix(1,0,0,-1,31.5,27.510003)' d='M0 0-.86-9.4C-2.597-8.669-4.385-8.064-6.21-7.59-7.845-7.184-9.525-6.982-11.21-6.99-13.208-6.896-15.197-7.312-16.99-8.2-18.23-8.784-19.031-10.02-19.06-11.39-19.078-12.324-18.717-13.226-18.06-13.89-17.13-14.702-16.045-15.318-14.87-15.7-14.35-15.87-13.75-16.05-12.8-16.3-7.5-18.04-4.06-19.49-2.33-20.8-.828-21.905 .387-23.356 1.21-25.03 2.003-26.791 2.386-28.709 2.33-30.64 2.33-35.64 .69-39.53-2.67-42.2-6.03-44.87-10.87-46.2-17.17-46.2-19.48-46.198-21.786-46.025-24.07-45.68-26.402-45.356-28.708-44.864-30.97-44.21L-29.97-34.03C-27.937-34.953-25.829-35.703-23.67-36.27-21.813-36.766-19.902-37.028-17.98-37.05-15.988-37.172-14.005-36.691-12.29-35.67-10.978-34.901-10.185-33.481-10.22-31.96-10.22-30.06-12.463-28.333-16.95-26.78-17.95-26.43-18.85-26.09-19.45-25.92-23.743-24.347-26.837-22.537-28.73-20.49-30.634-18.35-31.627-15.551-31.5-12.69-31.5-8.117-29.86-4.58-26.58-2.08-23.3 .42-18.58 1.63-12.43 1.63-10.266 1.621-8.106 1.478-5.96 1.2-3.934 .941-1.929 .536 .04-.01' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,49.01,58.49)' d='M0 0 7.42 21.31 12 7.59 21.75 13.81 15.02 31.49H.35L-15.27-9.66Z' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,32.02,72.729999)' d='M0 0H17.77L39.77 25.2Z' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,72.91,50.47)' d='M0 0-8.71-9.92-4.57-22.26H8.46Z' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,104.66,27)' d='M0 0V-17.42H-14.15V0H-26.4V-28.66L-19.92-45.73H-14.15V-26.66H0V-45.73H12.17V0Z' fill='%23F0EDE8'/></g></svg>")}
img[alt="Logotipo"]{height:30px;width:auto;max-width:180px}

/* ---- tipografia ---- */
body{font-family:'Inter',-apple-system,'Segoe UI',Roboto,Arial,sans-serif}

/* ---- ajustes pontuais que as variaveis nao cobrem ---- */
.botao:hover:not(:disabled){box-shadow:0 1px 2px rgba(10,17,27,.25),0 2px 6px 2px rgba(10,17,27,.12)}
.modo-escuro .botao:hover:not(:disabled){box-shadow:0 1px 2px rgba(0,0,0,.5),0 2px 8px 2px rgba(0,0,0,.35)}

/* ==================================================================
   BLOCO 2  |  TELA DE LOGIN (sempre escura)
   ================================================================== */


/* ---- paleta ---- */
.tela-login2{
  --sah-navy:#0A111B;
  --sah-card:#111C2A;
  --sah-gold:#C79E41;
  --sah-gold-hi:#D4AF37;
  --sah-fg:#F2EEE7;
  --sah-muted:#8D9AA8;
  --sah-line:rgba(242,238,231,.14);

  --cor-primaria-login:var(--sah-navy);
  --cor-secundaria-login:var(--sah-card);

  background-color:var(--sah-navy);
  background-image:radial-gradient(130% 85% at 50% 0%,rgba(199,158,65,.11) 0%,rgba(199,158,65,0) 62%);
  font-family:'Inter',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}

/* ---- cartao ---- */
.tela-login2 .form-login{
  color:var(--sah-fg)!important;
  background-color:var(--sah-card);
  border:1px solid var(--sah-line);
  border-radius:6px;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  padding:2rem 2rem 1.25rem;
}

/* ---- logotipo ---- */
.tela-login2 .form-login-logo{
  width:210px;
  height:60px;
  margin:.25rem auto 1.5rem;
  background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 100'><defs><clipPath id='c'><path transform='matrix(1,0,0,-1,0,100)' d='M0 100H350V0H0Z'/></clipPath></defs><g clip-path='url(%23c)'><path transform='matrix(1,0,0,-1,169.86,41.92)' d='M0 0C-.733 3.207-2.093 5.49-4.08 6.85-6.403 8.313-9.117 9.035-11.86 8.92-15.804 9.073-19.549 7.183-21.77 3.92-22.868 2.307-23.664 .508-24.12-1.39-24.636-3.47-24.891-5.607-24.88-7.75-24.883-9.824-24.665-11.892-24.23-13.92-23.836-15.839-23.101-17.671-22.06-19.33-21.037-20.926-19.635-22.245-17.98-23.17-16.001-24.209-13.784-24.712-11.55-24.63-10.051-24.65-8.561-24.385-7.16-23.85-5.874-23.351-4.694-22.615-3.68-21.68-2.67-20.735-1.822-19.63-1.17-18.41-.474-17.109 .044-15.719 .37-14.28H4.08C3.672-16.062 3.058-17.79 2.25-19.43 1.464-21.03 .393-22.474-.91-23.69-2.293-24.956-3.91-25.941-5.67-26.59-7.773-27.344-9.996-27.706-12.23-27.66-14.799-27.731-17.348-27.182-19.66-26.06-21.646-25.037-23.359-23.556-24.66-21.74-26.006-19.843-26.974-17.704-27.51-15.44-28.116-12.949-28.414-10.393-28.4-7.83-28.475-4.727-28.025-1.633-27.07 1.32-26.311 3.618-25.05 5.719-23.38 7.47-21.831 9.014-19.94 10.172-17.86 10.85-15.601 11.587-13.236 11.948-10.86 11.92-9.046 11.934-7.239 11.678-5.5 11.16-3.933 10.688-2.468 9.928-1.18 8.92 .105 7.894 1.172 6.623 1.96 5.18 2.82 3.575 3.396 1.832 3.66 .03Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,186.75,53.79)' d='M0 0H14.75L7.37 19.79ZM-9.31-14.86 5.49 22.79H9.49L23.93-14.87H20.25L15.95-3.04H-1.2L-5.65-14.86Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,227.34,49)' d='M0 0C1.506-.014 3.01 .09 4.5 .31 5.691 .474 6.837 .876 7.87 1.49 8.787 2.06 9.528 2.874 10.01 3.84 10.564 5.063 10.824 6.399 10.77 7.74 10.905 9.807 10.038 11.813 8.44 13.13 6.893 14.377 4.43 15 1.05 15H-8.16V0ZM-11.72-19.65V18H2.04C4.073 18.052 6.1 17.768 8.04 17.16 9.462 16.705 10.755 15.916 11.81 14.86 12.72 13.911 13.386 12.754 13.75 11.49 14.12 10.189 14.305 8.843 14.3 7.49 14.372 5.677 13.929 3.881 13.02 2.31 12.196 .979 11.056-.128 9.7-.91 8.263-1.723 6.697-2.281 5.07-2.56 3.354-2.872 1.614-3.03-.13-3.03H-8.19V-19.65Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,0,100)' d='M249 69H252.56V31.349999H249Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,258.88,31)' d='M0 0H27.41V-3H15.48V-37.65H11.92V-3H0Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,297.22,53.79)' d='M0 0H14.78L7.38 19.79ZM-9.31-14.86 5.49 22.79H9.49L23.93-14.87H20.27L15.93-3.05H-1.22L-5.67-14.87Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,326.25,68.65)' d='M0 0V37.65H3.56V3.04H23.75V.04Z' fill='%23D4AF37'/><path transform='matrix(1,0,0,-1,0,100)' d='M128.42 100H130.72V0H128.42Z' fill='%23C0392B'/><path transform='matrix(1,0,0,-1,31.5,27.510003)' d='M0 0-.86-9.4C-2.597-8.669-4.385-8.064-6.21-7.59-7.845-7.184-9.525-6.982-11.21-6.99-13.208-6.896-15.197-7.312-16.99-8.2-18.23-8.784-19.031-10.02-19.06-11.39-19.078-12.324-18.717-13.226-18.06-13.89-17.13-14.702-16.045-15.318-14.87-15.7-14.35-15.87-13.75-16.05-12.8-16.3-7.5-18.04-4.06-19.49-2.33-20.8-.828-21.905 .387-23.356 1.21-25.03 2.003-26.791 2.386-28.709 2.33-30.64 2.33-35.64 .69-39.53-2.67-42.2-6.03-44.87-10.87-46.2-17.17-46.2-19.48-46.198-21.786-46.025-24.07-45.68-26.402-45.356-28.708-44.864-30.97-44.21L-29.97-34.03C-27.937-34.953-25.829-35.703-23.67-36.27-21.813-36.766-19.902-37.028-17.98-37.05-15.988-37.172-14.005-36.691-12.29-35.67-10.978-34.901-10.185-33.481-10.22-31.96-10.22-30.06-12.463-28.333-16.95-26.78-17.95-26.43-18.85-26.09-19.45-25.92-23.743-24.347-26.837-22.537-28.73-20.49-30.634-18.35-31.627-15.551-31.5-12.69-31.5-8.117-29.86-4.58-26.58-2.08-23.3 .42-18.58 1.63-12.43 1.63-10.266 1.621-8.106 1.478-5.96 1.2-3.934 .941-1.929 .536 .04-.01' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,49.01,58.49)' d='M0 0 7.42 21.31 12 7.59 21.75 13.81 15.02 31.49H.35L-15.27-9.66Z' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,32.02,72.729999)' d='M0 0H17.77L39.77 25.2Z' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,72.91,50.47)' d='M0 0-8.71-9.92-4.57-22.26H8.46Z' fill='%23F0EDE8'/><path transform='matrix(1,0,0,-1,104.66,27)' d='M0 0V-17.42H-14.15V0H-26.4V-28.66L-19.92-45.73H-14.15V-26.66H0V-45.73H12.17V0Z' fill='%23F0EDE8'/></g></svg>") no-repeat center/contain;
}
.tela-login2 .form-login-logo img{display:none!important}

/* ---- campos ---- */
.tela-login2 .form-login .form-login-dados{
  width:320px;
  gap:.9rem;
  padding:.5rem 0 1rem;
}
.tela-login2 .campo-login-input{
  height:46px;
  padding:0 14px!important;
  font-family:inherit;
  font-size:.9rem!important;
  color:var(--sah-fg)!important;
  background:transparent!important;
  border:1px solid var(--sah-line)!important;
  border-radius:4px;
}
.tela-login2 .campo-login-input:hover{border-color:rgba(242,238,231,.26)!important}
.tela-login2 .campo-login-input:focus{
  border-color:var(--sah-gold)!important;
  outline:1px solid var(--sah-gold)!important;
}
.tela-login2 .campo-login-label{
  background-color:var(--sah-card);
  color:var(--sah-muted);
}
.tela-login2 .campo-login-input:focus+.campo-login-label{color:var(--sah-gold)}
.tela-login2 .campo-login-input:-webkit-autofill{
  -webkit-text-fill-color:var(--sah-fg)!important;
  -webkit-box-shadow:0 0 0 30px var(--sah-card) inset!important;
}
.tela-login2 .campo-login-input:-webkit-autofill:focus,
.tela-login2 .campo-login-input:-webkit-autofill:hover,
.tela-login2 .campo-login-input:-webkit-autofill:valid{
  outline:1px solid var(--sah-gold)!important;
  caret-color:var(--sah-fg);
}
.tela-login2 .form-login input[type=checkbox]{accent-color:var(--sah-gold)}
.tela-login2 .form-login label{color:var(--sah-muted)}
.tela-login2 .campo-login-label{color:var(--sah-muted)}

/* ---- botao ---- */
.tela-login2>.form-login .botao{
  width:100%;
  padding:14px 16px;
  font-family:inherit;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  border-radius:4px;
  color:var(--sah-navy);
  background-color:var(--sah-gold);
  border:1px solid var(--sah-gold);
}
.tela-login2>.form-login .botao:hover{
  opacity:1;
  color:var(--sah-navy);
  background-color:var(--sah-gold-hi);
  border-color:var(--sah-gold-hi);
}

/* ---- links ---- */
.tela-login2 .form-login a{
  color:var(--sah-muted);
  font-size:.85rem;
  text-decoration:none;
}
.tela-login2 .form-login a:hover{color:var(--sah-gold)}

/* ---- rodape ---- */
.tela-login2 .tela-login-rodape{color:rgba(141,154,168,.6)}
.tela-login2 .form-login .versao{color:rgba(141,154,168,.5)}
.tela-login2 circle,.tela-login2 path{fill:rgba(141,154,168,.5)}
.tela-login2 .rodape-social a{color:rgba(141,154,168,.5)}
.tela-login2 .rodape-social a:hover{color:var(--sah-gold)}

