/* =====================================================================
   DPH System — telas de acesso (login, esqueci a senha, primeiro acesso)
   Design: export-v3 do marketing (assets/dph.css), adaptado ao System.
   Não usa Bootstrap nem bootstrap-material-design: nada aqui é envolvido
   em .form-group / .bmd-form-group.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #e6e1d4; min-height: 100%; }
body { font-family: Barlow, system-ui, sans-serif; color: #1f2024; }
a { color: #8a6f00; text-decoration: none; }
a:hover { color: #1f2024; }
input::placeholder { color: #8b897e; }
input:focus, select:focus { outline: none; }
form { text-transform: none; font-size: inherit; }

@keyframes dphSpin  { to { transform: rotate(360deg); } }
@keyframes dphGlow  { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes dphTintA { 0%, 100% { opacity: 0; } 12%, 30% { opacity: 1; } 46% { opacity: 0; } }
@keyframes dphTintB { 0%, 40% { opacity: 0; } 55%, 72% { opacity: 1; } 88%, 100% { opacity: 0; } }

.dph-page { min-height: 100vh; display: flex; flex-wrap: wrap; gap: 22px; padding: 22px; align-items: stretch; }

/* ---------------- cartão ---------------- */
.dph-card { flex: 1 1 400px; max-width: 496px; min-width: 300px; position: relative; overflow: hidden;
  background: #fff; border-radius: 26px; box-shadow: 0 18px 40px rgba(28,26,18,.12);
  padding: clamp(24px,3vw,36px); display: flex; flex-direction: column; gap: 22px; }
.dph-corner, .dph-corner-in { position: absolute; top: 0; right: 0; width: 0; height: 0; }
.dph-corner { border-top: 74px solid #f2c200; border-left: 74px solid transparent; }
.dph-corner-in { border-top: 44px solid #fff; border-left: 44px solid transparent; }

.dph-screen { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; flex: 1; }
.dph-head { display: flex; align-items: center; gap: 16px; }
.dph-coin { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fdf4d0, #f3dc9a);
  border: 2px solid #e2bb52; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 8px 18px rgba(120,92,12,.16); }
.dph-coin img { width: 48px; height: auto; display: block; }
.dph-head-txt { display: flex; align-items: stretch; gap: 14px; min-width: 0; }
.dph-head-bar { width: 3px; background: linear-gradient(180deg, #e2bb52, rgba(226,187,82,.12)); flex: none; }
.dph-head-lines { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dph-title { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: clamp(28px,3.6vw,36px);
  line-height: .94; text-transform: uppercase; color: #1f2024; }
.dph-title.sm { font-size: clamp(26px,3.4vw,34px); }
.dph-kicker { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .16em;
  text-transform: uppercase; color: #8a6f00; }

/* ---------------- formulário ---------------- */
.dph-form { display: flex; flex-direction: column; gap: 15px; margin: 0; }
.dph-form.tight { gap: 12px; }
.dph-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.dph-label { display: flex; align-items: center; gap: 9px; font-family: 'Saira Condensed', sans-serif; font-weight: 700;
  font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: #4a463c; }
.dph-label.loose { letter-spacing: .14em; }
.dph-label i { width: 7px; height: 7px; background: #f2c200; border-radius: 2px; display: block; flex: none; }
.dph-label small { font-family: Barlow, sans-serif; font-weight: 500; font-size: 11.5px; letter-spacing: 0; text-transform: none; color: #8b897e; }
.dph-input, .dph-select { width: 100%; padding: 15px 22px; background: #f4f2ea; border: 1.5px solid #e6e3d6;
  border-radius: 999px; color: #1f2024; font-family: Barlow, sans-serif; font-size: 16px; margin: 0; }
.dph-select, input.dph-select { padding: 14px 20px; font-size: 15px; appearance: none; -webkit-appearance: none; }
select.dph-select { cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f6d64' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
.dph-input:focus, .dph-select:focus { border-color: #e0b400; background-color: #fff; }
.dph-input:disabled { color: #8b897e; }
.dph-wrap { position: relative; display: flex; }
.dph-wrap .dph-input { padding-right: 88px; }
.dph-pin { letter-spacing: .2em; }
.dph-eye { position: absolute; right: 6px; top: 5px; bottom: 5px; padding: 0 15px; background: transparent; border: none;
  border-radius: 999px; color: #63604f; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.dph-eye:hover { color: #1f2024; background: #efece0; }
.dph-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dph-row > * { flex: 1 1 140px; }

.dph-submit { margin-top: 5px; padding: 18px; min-height: 54px; width: 100%;
  background: linear-gradient(180deg, #f9da72 0%, #eebd33 48%, #d29c14 100%); border: 1px solid #c19317;
  border-radius: 999px; color: #1b1406; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: opacity .15s;
  box-shadow: 0 12px 24px rgba(180,138,10,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.dph-submit:hover { background: linear-gradient(180deg, #ffe58c 0%, #f5c94a 48%, #dda81c 100%); }
.dph-submit:disabled { opacity: .6; cursor: wait; }   /* formevents.js desabilita enquanto envia */

.dph-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-weight: 600; font-size: 13.5px; }
.dph-links .muted { color: #6f6d64; }
.dph-links .strong { color: #1f2024; border-bottom: 2px solid #f2c200; }
.dph-back { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------------- manter conectado ---------------- */
.dph-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: #54524a; user-select: none; }
.dph-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.dph-check-box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid #e6e3d6; background: #f4f2ea; position: relative; transition: background .15s, border-color .15s; }
.dph-check-box::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #1f2024; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; }
.dph-check input:checked + .dph-check-box { background: #f2c200; border-color: #f2c200; }
.dph-check input:checked + .dph-check-box::after { opacity: 1; }
.dph-check input:focus-visible + .dph-check-box { border-color: #e0b400; box-shadow: 0 0 0 3px rgba(242,194,0,.25); }

/* ---------------- caixa do código da missão ---------------- */
.dph-note { display: flex; flex-direction: column; gap: 11px; padding: 17px 19px; background: #f9ecc0; border-radius: 18px; }
.dph-note-label { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 13.5px; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase; color: #5f5110; }
.dph-note-small { font-size: 12.5px; line-height: 1.5; color: #5f5110; }
.dph-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dph-code { flex: 1 1 150px; padding: 13px 20px; background: #fff; border-radius: 999px; text-align: center;
  font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .16em; color: #1f2024; user-select: all; }
.dph-copy { padding: 13px 20px; min-height: 46px; background: #1f2024; border: none; border-radius: 999px; color: #f7d66a;
  font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 13.5px; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer; }
.dph-copy:hover { background: #3a3c41; }

/* ---------------- rodapé do cartão ---------------- */
.dph-foot { display: flex; flex-direction: column; gap: 16px; }
.dph-warn { margin: 0; display: flex; gap: 13px; padding: 13px 16px; background: #f9ecc0; border-radius: 16px;
  font-size: 12.5px; line-height: 1.5; color: #5f5110; }
.dph-warn span { width: 3px; background: #e0b400; border-radius: 2px; display: block; flex: none; }
.dph-social-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dph-social-label { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 13.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #4a463c; }
.dph-social { display: flex; gap: 9px; }
.dph-social a { width: 44px; height: 44px; border-radius: 50%; background: #1f2024; display: flex; align-items: center;
  justify-content: center; color: #f7f4ee; transition: background .15s, color .15s; }
.dph-social a:hover { background: #f2c200; color: #1b1406; }
.dph-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ---------------- palco (lado direito) ---------------- */
.dph-stage { flex: 1 1 470px; min-width: 280px; min-height: min(66vh, 440px); position: relative; overflow: hidden;
  border-radius: 26px; background: linear-gradient(165deg, #ead3a0 0%, #dfc37f 52%, #cbaa5c 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px,2.2vw,24px); padding: clamp(30px,4vw,52px); }
.dph-layer { position: absolute; inset: 0; }
.dph-base { background: url('/img/auth/dph-base2.png') no-repeat center / auto 260%; image-rendering: pixelated; opacity: .34; filter: saturate(.5); }
.dph-tint-a { background: linear-gradient(160deg, rgba(58,54,22,.2) 0%, rgba(96,86,26,.14) 100%); animation: dphTintA 34s ease-in-out infinite; }
.dph-tint-b { background: linear-gradient(160deg, rgba(28,30,44,.2) 0%, rgba(40,42,58,.12) 100%); animation: dphTintB 34s ease-in-out infinite; }
.dph-shade { background: rgba(40,34,10,.17); }
.dph-scrim { background: radial-gradient(64% 62% at 50% 44%, rgba(255,252,240,.7) 0%, rgba(226,203,140,.4) 66%, rgba(150,122,52,.4) 100%); }
.dph-grid { background-image: linear-gradient(rgba(96,76,14,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(96,76,14,.06) 1px, transparent 1px); background-size: 34px 34px; }
.dph-vignette { box-shadow: inset 0 0 90px rgba(70,56,12,.3); }
.dph-cut-tl { position: absolute; top: 0; left: 0; width: 0; height: 0; border-top: 108px solid rgba(255,250,232,.3); border-right: 108px solid transparent; }
.dph-cut-br { position: absolute; bottom: 0; right: 0; width: 0; height: 0; border-bottom: 130px solid rgba(120,94,16,.16); border-left: 130px solid transparent; }

.dph-creed { position: absolute; top: clamp(20px,3vw,36px); right: clamp(20px,3vw,36px); display: flex; align-items: stretch; gap: 11px; }
.dph-creed div { text-align: right; display: flex; flex-direction: column; gap: 2px; font-family: 'Saira Condensed', sans-serif;
  font-weight: 700; font-size: clamp(10px,1.1vw,14px); letter-spacing: .26em; text-transform: uppercase; color: #3f3610; }
.dph-creed span.bar { width: 3px; background: linear-gradient(180deg, #8a6f00, rgba(138,111,0,.12)); display: block; }

.dph-medal { position: relative; width: clamp(180px,29vw,310px); aspect-ratio: 1; border-radius: 50%; padding: 11px;
  background: linear-gradient(180deg, #f9dd85 0%, #c9971c 50%, #8a6510 100%);
  box-shadow: 0 20px 44px rgba(88,70,12,.36), 0 0 0 12px rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; }
.dph-medal .glow { position: absolute; inset: -22px; border-radius: 50%; background: radial-gradient(circle, rgba(247,214,106,.4) 0%, transparent 66%); animation: dphGlow 5s ease-in-out infinite; }
.dph-medal .ring { position: absolute; inset: -2px; border-radius: 50%; border: 1.5px dashed rgba(90,72,10,.35); animation: dphSpin 60s linear infinite; }
.dph-medal .disc { position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #fffdf6, #f2ecdb); display: flex; align-items: center; justify-content: center; }
.dph-medal img { width: 74%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(80,62,10,.32)); }

.dph-wordmark { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(9px,1.2vw,14px); }
.dph-wordmark b { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: clamp(36px,6vw,72px);
  line-height: .86; letter-spacing: .01em; text-transform: uppercase; color: #17180f; }
.dph-wordmark b i { color: #6d5700; font-style: italic; }
.dph-rule { display: flex; align-items: center; gap: 11px; }
.dph-rule span.l { width: clamp(34px,7vw,110px); height: 2px; background: linear-gradient(90deg, transparent, #8a6f00); display: block; }
.dph-rule span.r { width: clamp(34px,7vw,110px); height: 2px; background: linear-gradient(90deg, #8a6f00, transparent); display: block; }
.dph-rule span.star { color: #6d5700; font-size: 14px; line-height: 1; }
.dph-sub { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: clamp(12px,1.5vw,17px);
  letter-spacing: .2em; text-transform: uppercase; color: #4f4413; }
.dph-site { padding: 8px 24px; border: 2px solid #8a6f00; border-radius: 999px; font-family: 'Saira Condensed', sans-serif;
  font-weight: 700; font-size: clamp(10px,1.1vw,13px); letter-spacing: .2em; text-transform: uppercase; color: #4f4413; }

/* ---------------- notify.js: mesma notificação do System (cabeçalho "Rádio DPH") ---------------- */
.notifyjs-corner { z-index: 9999; }
.notify-head { font-size: 12px; text-transform: uppercase; font-family: Industry, sans-serif; font-weight: 400; margin-bottom: 20px; height: 30px; }
.notify-head .notify-icon { margin-top: -5px; }
.notify-head .ondas { width: 12px; margin-top: -4px; }
.notify-head .material-icons { font-size: 18px; vertical-align: middle; }
.w-100 { width: 100%; } .float-left { float: left; } .float-right { float: right; } .mr-2 { margin-right: .5rem; } .ml-2 { margin-left: .5rem; }

/* ---------------- responsivo ---------------- */
@media (max-width: 900px) {
  .dph-page { flex-direction: column-reverse; gap: 16px; padding: 16px; }
  .dph-card { max-width: none; }
  .dph-stage { min-height: 320px; }
}
@media (max-width: 900px) {
  /* palco compacto no celular: identidade visível sem empurrar o formulário para fora da tela */
  /* em coluna, o flex-basis de 470px viraria ALTURA: zera para o palco ter só a altura do conteúdo */
  .dph-stage { flex: 0 0 auto; min-height: 0; padding: 22px 18px 24px; gap: 10px; }
  .dph-card { flex: 0 0 auto; }
  .dph-medal { width: 118px; padding: 7px; box-shadow: 0 12px 26px rgba(88,70,12,.3), 0 0 0 8px rgba(255,255,255,.3); }
  .dph-medal .glow { inset: -14px; }
  .dph-wordmark { gap: 6px; }
  .dph-wordmark b { font-size: 34px; }
  .dph-rule span.l, .dph-rule span.r { width: 34px; }
  .dph-sub { font-size: 11px; letter-spacing: .16em; }
  .dph-site { display: none; }
  .dph-creed div { font-size: 10px; letter-spacing: .2em; }
  .dph-cut-tl { border-top-width: 70px; border-right-width: 70px; }
  .dph-cut-br { border-bottom-width: 80px; border-left-width: 80px; }
}
@media (max-width: 480px) {
  .dph-page { padding: 12px; gap: 12px; }
  .dph-card { padding: 22px 18px; border-radius: 20px; }
  .dph-corner { border-top-width: 56px; border-left-width: 56px; }
  .dph-corner-in { border-top-width: 32px; border-left-width: 32px; }
  .dph-coin { width: 60px; height: 60px; }
  .dph-coin img { width: 40px; }
  .dph-stage { border-radius: 20px; }
  .dph-creed { top: 14px; right: 14px; }
  .notifyjs-corner { max-width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .dph-medal .ring, .dph-medal .glow, .dph-tint-a, .dph-tint-b { animation: none; }
}
