:root { --pacto-blue: #087fe5; --pacto-deep: #075db9; --pacto-ink: #263445; }
* { box-sizing: border-box; }
body.auth-page, body.error-page-custom { min-height: 100vh; margin: 0; background: #fff !important; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.auth-shell { width: 100%; min-height: 100vh; max-width: none; margin: 0; }
.auth-shell > .card, .error-shell > .card { min-height: 100vh; margin: 0; border: 0 !important; border-radius: 0; box-shadow: none; }
.auth-shell > .card > .card-header, .error-shell > .card > .card-header { display: none; }
.auth-shell > .card > .card-body, .error-shell > .card > .card-body { padding: 0; }
.auth-layout { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(540px, 1.05fr); min-height: 100vh; }
.auth-visual { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; padding: 42px clamp(32px, 5vw, 84px); background: #fff; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--pacto-ink); font-size: 1.35rem; text-decoration: none; }
.auth-brand img { width: 42px; height: 42px; }
.education-art { position: relative; place-self: center; width: min(430px, 75%); aspect-ratio: 1.25; transform: translateY(-3%); }
.art-orbit { position: absolute; border: 2px solid #d9ecfb; border-radius: 50%; }
.orbit-one { inset: 4% 4% 12% 4%; }.orbit-two { inset: 16% 16% 23% 16%; border-style: dashed; }
.art-board { position: absolute; top: 17%; right: 3%; width: 50%; height: 42%; padding: 12%; border-radius: 14px; background: #eaf5ff; box-shadow: 0 18px 40px rgba(8,127,229,.13); }
.art-board span { display: block; width: 75%; height: 7px; margin-bottom: 12px; border-radius: 8px; background: #a7d5fb; }.art-board span:nth-child(2) { width: 55%; }.art-board i { position: absolute; right: 12%; bottom: 12%; color: var(--pacto-blue); font-size: 2.4rem; }
.art-person { position: absolute; left: 20%; bottom: 21%; width: 27%; height: 49%; }.person-head { width: 43%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: #efaa75; }.person-body { width: 78%; height: 62%; margin: -2px auto 0; border-radius: 45% 45% 16% 16%; background: var(--pacto-blue); transform: skew(-4deg); }.person-arm { position: absolute; top: 35%; right: -38%; width: 70%; height: 13%; border-radius: 20px; background: #efaa75; transform: rotate(-11deg); transform-origin: left; }
.art-desk { position: absolute; left: 8%; right: 3%; bottom: 16%; height: 8%; border-radius: 10px; background: #33495f; box-shadow: 0 45px 0 -18px #33495f; }.art-book { position: absolute; right: 3%; bottom: 25%; color: #f4b942; font-size: 3.2rem; transform: rotate(7deg); }
.auth-panel { position: relative; display: grid; place-items: center; overflow: hidden; padding: 48px; border-radius: 34px 0 0 34px; background: linear-gradient(145deg, #118df1 0%, #0577da 58%, #0568c1 100%); }
.auth-panel::before { content: ""; position: absolute; top: -160px; right: -100px; width: 410px; height: 410px; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-rings { position: absolute; right: -130px; bottom: -180px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; box-shadow: 0 0 0 45px transparent, 0 0 0 46px rgba(255,255,255,.34), 0 0 0 95px transparent, 0 0 0 96px rgba(255,255,255,.18); }
.auth-form-card { position: relative; z-index: 1; width: min(440px, 100%); padding: 42px 44px 36px; border-radius: 16px; background: #fff; box-shadow: 0 26px 80px rgba(3,46,89,.22); }
.auth-kicker { color: var(--pacto-blue); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }.auth-form-card h1, .error-content h1 { margin: 7px 0 4px; color: var(--pacto-ink); font-size: 1.95rem; font-weight: 800; }.auth-subtitle { margin: 0 0 25px; color: #708090; }
.auth-field { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 14px; padding: 0 17px; border: 1px solid #dce3ea; border-radius: 999px; background: #fff; transition: border-color .2s, box-shadow .2s; }.auth-field:focus-within { border-color: var(--pacto-blue); box-shadow: 0 0 0 4px rgba(8,127,229,.1); }.auth-field.has-error { border-color: #dc3545; }.auth-field i { color: #9aa7b3; }.auth-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--pacto-ink); }.auth-field input::placeholder { color: #a6b0ba; }
.field-error { margin: 5px 15px 0; color: #c92a2a; font-size: .78rem; }.auth-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; margin-top: 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #118df1, #0573d3); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 24px rgba(8,127,229,.2); transition: transform .2s, box-shadow .2s; }.auth-submit:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px rgba(8,127,229,.28); }.auth-switch { margin: 22px 0 0; color: #7a8794; text-align: center; font-size: .88rem; }.auth-switch a { color: var(--pacto-blue); font-weight: 700; text-decoration: none; }
.auth-help-link { margin: 10px 12px -8px; text-align: right; font-size: .84rem; }.auth-help-link a { color: var(--pacto-blue); font-weight: 700; text-decoration: none; }
.error-shell { width: 100%; max-width: none; min-height: 100vh; }.error-shell > .card { display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at 80% 10%, #e8f5ff 0, transparent 35%), #f8fbfe; }.error-content { width: min(640px, 100%); padding: 55px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 22px 70px rgba(25,75,120,.12); }.error-code { color: var(--pacto-blue); font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: .9; letter-spacing: -.08em; opacity: .13; }.error-content p { max-width: 480px; margin: 12px auto 28px; color: #708090; font-size: 1.05rem; }.error-actions { display: flex; justify-content: center; gap: 12px; }.error-actions .auth-submit { width: auto; margin: 0; padding: 0 24px; }.error-back { min-height: 50px; padding: 0 22px; border: 1px solid #dce3ea; border-radius: 999px; background: #fff; color: var(--pacto-ink); font-weight: 700; }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-panel { min-height: 100vh; border-radius: 0; padding: 26px; }.auth-form-card { padding: 36px 28px 30px; } }
@media (max-width: 480px) { .auth-panel { padding: 16px; }.auth-form-card { padding: 30px 22px 25px; }.error-content { padding: 38px 22px; }.error-actions { flex-direction: column; }.error-actions .auth-submit { width: 100%; } }

/* Login da Jornada Formativa */
.signin-page .auth-layout { grid-template-columns: 56% 44%; }
.signin-page .auth-visual { display: block; padding: 0; background: #f7edc8 url("../img/login-jornada-bg.99b6cc2ec574.png") center / 100% 100% no-repeat; }
.signin-event-card { position: relative; z-index: 1; height: 100%; min-height: 100vh; padding: clamp(60px, 10.8vh, 88px) 7% 48px 10%; color: #111; }
.signin-event-header { color: #0b55a1; font-family: Arial, Helvetica, sans-serif; }
.signin-event-header h1 { margin: 0; font-size: clamp(1.75rem, 2.4vw, 2.55rem); font-weight: 900; line-height: .96; letter-spacing: -.035em; }
.signin-event-header > p { margin: 2px 0 10px; font-size: clamp(1.15rem, 1.75vw, 1.75rem); font-weight: 700; line-height: 1; }
.signin-event-callout { display: grid; grid-template-columns: minmax(190px, 1fr) auto; align-items: start; width: min(460px, 88%); gap: 8px 22px; }
.signin-event-callout strong { grid-row: 1 / span 2; font-size: clamp(1rem, 1.5vw, 1.45rem); line-height: .96; }
.signin-event-callout span { padding-top: 3px; font-size: clamp(.88rem, 1.2vw, 1.1rem); white-space: nowrap; }
.signin-event-callout a { justify-self: start; padding: 8px 14px; border-radius: 8px; background: #e52b05; color: #fff; font-size: clamp(.9rem, 1.25vw, 1.15rem); font-weight: 900; line-height: 1; text-decoration: none; box-shadow: 0 2px 0 rgba(135, 33, 8, .16); }
.signin-event-callout a:hover { color: #fff; background: #c92505; }
.signin-schedule { margin-top: clamp(36px, 6vh, 56px); font-family: Georgia, "Times New Roman", serif; }
.signin-schedule h2 { margin: 0 0 clamp(30px, 5vh, 50px); color: #087f25; font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 700; }
.schedule-day { margin-top: clamp(21px, 3.25vh, 31px); }
.schedule-day h3 { margin: 0 0 2px; color: #d10b00; font-size: clamp(.9rem, 1.14vw, 1.08rem); font-weight: 400; }
.schedule-day p { margin: 0; font-family: "Courier New", Courier, monospace; font-size: clamp(.77rem, 1.02vw, .98rem); line-height: 1.25; white-space: nowrap; }

.signin-page .auth-panel { align-items: start; justify-items: center; padding: clamp(110px, 19vh, 150px) 48px 120px; border-radius: 0; background: #fff; }
.signin-page .auth-panel::before, .signin-page .auth-rings { display: none; }
.signin-page .auth-form-card { width: min(285px, 100%); padding: 0; border-radius: 0; box-shadow: none; transform: translateX(-32px); }
.signin-page .auth-form-card h1 { font-size: 1.8rem; }
.signin-page .auth-subtitle { margin-bottom: 24px; }
.signin-page .auth-field { min-height: 45px; margin-top: 13px; }
.signin-page .auth-submit { min-height: 45px; }
.auth-whatsapp-help { margin: 14px 0 0; text-align: center; }.auth-whatsapp-help a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid #25d366; border-radius: 999px; color: #128c4a; font-size: .78rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }.auth-whatsapp-help a:hover, .auth-whatsapp-help a:focus-visible { background: #25d366; color: #fff; transform: translateY(-1px); }.auth-whatsapp-help i { font-size: 1rem; }
.signin-partners { position: absolute; right: 7%; bottom: 34px; left: 7%; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 38px); color: #666; }
.signin-partners > img { max-width: calc(50% - 10px); object-fit: contain; }
.partner-ufpb-logo { width: clamp(210px, 20vw, 255px); height: 112px; }
.partner-mec-logo { width: clamp(180px, 17vw, 220px); height: auto; }

.signup-event-page .auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 30px; padding-bottom: 20px; overflow-y: auto; }
.signup-event-page .auth-form-card { flex: 0 0 auto; }
.signup-event-page .auth-field { min-height: 42px; margin-top: 9px; }
.signup-event-page .auth-submit { min-height: 43px; margin-top: 14px; }
.signup-event-page .auth-switch { margin-top: 14px; }
.signup-event-page .signin-partners { position: relative; right: auto; bottom: auto; left: auto; flex: 0 0 auto; width: 100%; margin-top: 18px; }
.signup-event-page .partner-ufpb-logo { height: 82px; }
.recovery-event-page .auth-panel { padding-top: clamp(70px, 11vh, 90px); }
.recovery-event-page .auth-form-card { width: min(330px, 100%); }
.recovery-event-page .alert { font-size: .8rem; }

@media (max-width: 1100px) and (min-width: 901px) {
  .signin-event-card { padding-left: 8%; padding-right: 5%; }
  .signin-event-callout { width: 96%; }
  .schedule-day p { font-size: .73rem; }
  .signin-page .auth-panel { padding-right: 32px; padding-left: 32px; }
  .signin-page .auth-form-card { transform: translateX(-18px); }
  .signin-partners { gap: 14px; }
  .partner-ufpb-logo { width: 175px; }
  .partner-mec-logo { width: 155px; }
}
@media (max-width: 900px) {
  .signin-page .auth-layout { grid-template-columns: 1fr; }
  .signin-page .auth-visual { display: none; }
  .signin-page .auth-panel { min-height: 100vh; padding: 72px 26px 135px; }
  .signin-page .auth-form-card { width: min(320px, 100%); transform: none; }
  .signin-partners { bottom: 24px; }
  .signup-event-page .auth-panel { padding: 30px 26px 20px; }
  .signup-event-page .signin-partners { bottom: auto; }
}
@media (max-width: 520px) {
  .signin-page .auth-panel { padding: 54px 20px 125px; }
  .signin-partners { right: 16px; left: 16px; gap: 10px; }
  .signin-partners > img { max-width: calc(50% - 5px); }
  .partner-ufpb-logo { width: 150px; height: 55px; }
  .partner-mec-logo { width: 150px; }
}
