/* SimuFísica 3.0 — design system das páginas de conta (login/cadastro/perfil/recuperar senha/dashboard)
   Ver docs/redesign-3.0.md secao 3/7/14. Compartilhado entre as páginas sf3-auth <slug>2/ — não
   confundir com sf3-static (assets/css usado pelas páginas institucionais sobre/ajuda/etc). */

body.sf3-auth {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body.sf3-auth * { box-sizing: border-box; }
body.sf3-auth ::selection { background: rgba(43,120,197,0.18); }
body.sf3-auth input::placeholder { color: #94a3b8; }
body.sf3-auth a { color: #2B78C5; }
/* Remove o retângulo de contorno/realce que ficava em qualquer link após o
   clique/toque (pedido do usuário 07/09/2026 — print mostrando o retângulo
   preso em volta de um link nas Referências). */
body.sf3-auth a { -webkit-tap-highlight-color: transparent; }
body.sf3-auth a:focus, body.sf3-auth a:active { outline: none; }

.sf3-auth-topbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
}
.sf3-auth-topbar-inner { max-width: 1280px; margin: 0 auto; }
body.sf3-auth a.sf3-auth-home-btn {
    display: inline-block;
    background: #2B78C5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
}
body.sf3-auth a.sf3-auth-home-btn:hover { background: #2467ab; }

.sf3-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.sf3-auth-card {
    width: 100%;
    max-width: 460px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 40px -24px rgba(15,23,42,0.12);
    padding: 40px 36px;
}
.sf3-auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.sf3-auth-logo img { height: 60px; width: auto; }

.sf3-auth-card h1 {
    font-size: 22px;
    font-weight: 500;
    color: #0f172a;
    text-align: center;
    margin: 0 0 10px;
}
.sf3-auth-subtitle {
    text-align: center;
    font-size: 16px;
    color: #475569;
    margin: 0 0 28px;
}
.sf3-auth-subtitle a { font-weight: 600; text-decoration: none; }
.sf3-auth-subtitle a:hover { text-decoration: underline; }

.sf3-auth-field { margin-bottom: 18px; }
.sf3-auth-field.senha { margin-bottom: 22px; }
.sf3-auth-field label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}
.sf3-auth-field input[type="text"],
.sf3-auth-field input[type="email"],
.sf3-auth-field input[type="password"],
.sf3-auth-field select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
}
.sf3-auth-field input:focus,
.sf3-auth-field select:focus {
    outline: none;
    border-color: #2B78C5;
    box-shadow: 0 0 0 3px rgba(43,120,197,0.15);
}
.mensagem-erro {
    display: block;
    color: #d64526;
    font-size: 12px;
    margin-top: 6px;
}

.sf3-auth-submit {
    width: 100%;
    background: #2B78C5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.sf3-auth-submit:hover { background: #2467ab; }

.sf3-auth-forgot {
    text-align: center;
    font-size: 14px;
    color: #475569;
    margin: 20px 0 0;
}
.sf3-auth-forgot a { font-weight: 600; text-decoration: none; }
.sf3-auth-forgot a:hover { text-decoration: underline; }

.sf3-auth-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 20px; }
.sf3-auth-divider .linha { flex: 1; height: 1px; background: #e2e8f0; }
.sf3-auth-divider span {
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
    font-size: 14px;
}

.sf3-auth-google { display: flex; justify-content: center; }

.sf3-auth-footer {
    text-align: center;
    padding: 0 24px 32px;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .sf3-auth-main { padding: 24px 16px; }
    .sf3-auth-card { padding: 28px 22px; }
}

/* Mensagem de alerta (cadastro, recuperar senha, perfil) */
.sf3-auth-message {
    display: none;
    background: #eaf3fb;
    border: 1px solid #cfe3f6;
    color: #1e3a5c;
    font-size: 15px;
    border-radius: 9px;
    padding: 10px 14px;
    margin-bottom: 18px;
    margin-top: 18px;
}
.sf3-auth-message.erro {
    background: #fdeceb;
    border-color: #f4d4d1;
    color: #b3261e;
}

/* Texto de ajuda abaixo de um campo */
.sf3-auth-help {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}

/* Campo de senha com botão de mostrar/ocultar embutido */
.sf3-auth-password-row { display: flex; }
body.sf3-auth .sf3-auth-password-row input {
    flex: 1;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 9px 0 0 9px;
    padding: 12px 14px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
}
.sf3-auth-password-row input:focus {
    outline: none;
    border-color: #2B78C5;
    box-shadow: 0 0 0 3px rgba(43,120,197,0.15);
}
.sf3-auth-toggle-eye {
    width: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 0 9px 9px 0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf3-auth-toggle-eye:focus { outline: none; }

/* Botão primário solto (não ocupa 100% da largura) — recuperar senha, perfil */
.sf3-auth-btn-primary {
    display: inline-block;
    background: #2B78C5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.sf3-auth-btn-primary:hover { background: #2467ab; }
body.sf3-auth a.sf3-auth-btn-primary { color: #ffffff; }

/* Layout largo sem card, usado em Recuperar Senha (segue o mockup, sem o cartão de login/cadastro) */
.sf3-auth-wide {
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}
.sf3-auth-wide h1 {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    margin: 0 0 18px;
}
.sf3-auth-lead {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 28px;
}
.sf3-auth-wide h2 {
    font-size: 19px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 20px;
}
.sf3-auth-hr { border: none; border-top: 1px solid #e2e8f0; margin: 0 0 28px; }

@media (max-width: 480px) {
    .sf3-auth-wide { padding: 32px 16px 56px; }
}

/* Campo desabilitado (perfil: e-mail não editável) */
.sf3-auth-field input:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* Variante de perigo do botão primário solto (perfil: "Alterar") */
.sf3-auth-btn-primary.perigo { background: #dc2626; }
.sf3-auth-btn-primary.perigo:hover { background: #b91c1c; }

/* Topbar com dois grupos de botões (dashboard, perfil) */
.sf3-auth-topbar-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sf3-auth-topbar-group { display: flex; gap: 12px; flex-wrap: wrap; }
body.sf3-auth a.sf3-auth-pill-btn {
    display: inline-block;
    background: #2B78C5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
}
body.sf3-auth a.sf3-auth-pill-btn:hover { background: #2467ab; }
body.sf3-auth a.sf3-auth-pill-btn[hidden] { display: none; }

/* Formulário de ordenação (dashboard) */
.sf3-dash-order-form { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }

/* Lista de simulações salvas (dashboard) */
body.sf3-auth .list-group { list-style: none; margin: 8px 0 40px; padding: 0; border-top: 1px solid #e2e8f0; }
body.sf3-auth .list-group-item { padding: 20px 4px; border-bottom: 1px solid #e2e8f0; }
body.sf3-auth .list-group-item:hover { background: #f8fafc; }
body.sf3-auth .list-group-item a { text-decoration: none; color: inherit; display: block; }
body.sf3-auth .list-group-item h5 { font-size: 17px; font-weight: 600; color: #0f172a; margin: 0 0 4px; }
body.sf3-auth .list-group-item p { color: #1a8176; font-weight: 400; font-size: 16px; margin: 0; }
body.sf3-auth .list-group-item small { color: #94a3b8; font-size: 13px; }
.sf3-dash-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sf3-dash-actions { margin-top: 12px; gap: 10px; }
body.sf3-auth .btn-outline-primary,
body.sf3-auth .btn-outline-danger {
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #ffffff;
}
body.sf3-auth .btn-outline-primary { border: 1px solid #2B78C5; color: #2B78C5; }
body.sf3-auth .btn-outline-danger { border: 1px solid #dc2626; color: #dc2626; }

/* Modal de renomear e diálogo de confirmação de exclusão (dashboard) */
body.sf3-auth .modal2 {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(15,23,42,0.5);
}
body.sf3-auth .modal-content2 {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    margin: auto;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    width: 60%;
    min-width: 280px;
    max-width: 440px;
    box-shadow: 0 20px 40px -20px rgba(15,23,42,0.25);
}
body.sf3-auth .modal-content2 h5 { margin: 0; font-size: 17px; font-weight: 700; color: #0f172a; }
body.sf3-auth .close2 { background: none; border: none; font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer; }
.sf3-dash-rename-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 15px;
    color: #0f172a;
    font-family: inherit;
}
.sf3-dash-rename-input:focus {
    outline: none;
    border-color: #2B78C5;
    box-shadow: 0 0 0 3px rgba(43,120,197,0.15);
}
.sf3-dash-btn-ghost {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.sf3-dash-btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

body.sf3-auth .custom-confirm {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15,23,42,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
body.sf3-auth .confirm-box {
    background: #ffffff;
    padding: 26px 30px;
    border-radius: 14px;
    box-shadow: 0 20px 40px -20px rgba(15,23,42,0.25);
    text-align: center;
}
body.sf3-auth .confirm-box p { margin: 0 0 20px; font-size: 15px; color: #0f172a; }
