:root {
  --navy-950: #031b35;
  --navy-900: #05294d;
  --navy-800: #073a67;
  --blue: #0b6fae;
  --green: #00d47b;
  --green-dark: #00a963;
  --yellow: #ffc400;
  --white: #f8fcff;
  --muted: #9dc2df;
  --line: rgba(71, 161, 215, .42);
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: #021b34;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 42%) minmax(560px, 58%);
  background:
    radial-gradient(circle at 75% 20%, rgba(16, 121, 187, .28), transparent 34%),
    linear-gradient(115deg, #063a69 0%, #031e3b 52%, #02172c 100%);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-image: url('/assets/solarfarm-left.webp');
  background-size: cover;
  background-position: center;
}
.brand-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 31, 57, .10) 0%, rgba(2, 27, 50, .12) 45%, rgba(2, 22, 40, .48) 100%);
}
.brand-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 58px clamp(32px, 5vw, 80px) 42px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
  font-size: clamp(31px, 3vw, 48px);
  font-weight: 850;
  letter-spacing: -2px;
  text-shadow: 0 4px 22px rgba(0,0,0,.25);
}
.brand > span:last-child span { color: var(--yellow); }
.brand-mark img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}
.brand-tagline { margin: 2px 0 48px 56px; font-weight: 700; font-size: 16px; }
.intro-copy { max-width: 520px; }
.intro-copy h1 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 43px); line-height: 1.05; letter-spacing: -1px; }
.intro-copy p { margin: 0; max-width: 500px; font-size: 17px; line-height: 1.55; color: #e8f6ff; }
.feature-list { margin-top: 38px; display: grid; gap: 18px; max-width: 520px; }
.feature { display: flex; align-items: center; gap: 16px; }
.feature-icon {
  width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.15); border-radius: 15px;
  background: rgba(3, 42, 73, .86); box-shadow: 0 12px 30px rgba(0,0,0,.18);
  color: #fff; font-size: 27px;
}
.feature strong { display: block; font-size: 17px; margin-bottom: 2px; }
.feature span { display: block; color: #e0f2ff; font-size: 13px; line-height: 1.35; }
.sustainability { margin-top: auto; margin-bottom: 0; font-size: 18px; font-weight: 700; font-style: italic; }
.sustainability span { color: var(--green); }

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px clamp(22px, 5vw, 76px);
  background: rgba(1, 21, 40, .55);
}
.form-shell { width: min(900px, 100%); }
.form-header { margin-bottom: 22px; }
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 3px; border: 1px solid var(--line); border-radius: 15px;
  background: rgba(3, 38, 70, .76); box-shadow: var(--shadow);
}
.tab {
  border: 0; border-radius: 12px; padding: 17px 18px; color: #dceefe; background: transparent;
  font-weight: 800; font-size: 16px; transition: .2s ease;
}
.tab.active { background: linear-gradient(180deg, #0edc84, #00b86a); color: #fff; box-shadow: 0 8px 24px rgba(0, 212, 123, .22); }
.forms { position: relative; }
.auth-form {
  display: none; padding: clamp(25px, 4vw, 40px); border: 1px solid rgba(57, 146, 204, .42);
  border-radius: 20px; background: linear-gradient(145deg, rgba(5, 47, 84, .94), rgba(2, 28, 54, .96));
  box-shadow: var(--shadow);
}
.auth-form.active-form { display: block; animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.form-title { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.title-icon {
  width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, #18e28a, #00a965); color: white; font-size: 24px; box-shadow: 0 8px 25px rgba(0, 212, 123, .2);
}
.form-title h2 { margin: 0 0 5px; font-size: 25px; }
.form-title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; font-size: 13px; color: #d9edfc; font-weight: 700; }
.field small { display: block; margin-top: 5px; color: #73a7c9; font-size: 11px; }
.field input {
  width: 100%; height: 53px; border: 1px solid #1473ad; border-radius: 12px; outline: none;
  padding: 0 16px; background: rgba(1, 27, 52, .72); color: white; transition: .18s ease;
}
.field input::placeholder { color: #6f9cbd; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 212, 123, .12); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #7ca9c8; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 4px 0 20px; }
.check { display: flex; align-items: flex-start; gap: 8px; color: #d6e9f7; font-size: 12px; line-height: 1.45; }
.check input { accent-color: var(--green); margin-top: 2px; }
.link { color: #00e38a; font-weight: 700; text-decoration: underline; }
.primary-btn, .social-btn {
  width: 100%; min-height: 54px; border-radius: 12px; font-weight: 850; border: 1px solid transparent; transition: .2s ease;
}
.primary-btn { color: white; background: linear-gradient(180deg, #10df84, #00b96b); box-shadow: 0 10px 28px rgba(0, 212, 123, .2); }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.social-btn { color: #e8f5ff; background: rgba(1, 28, 53, .72); border-color: #267cae; }
.social-btn strong { margin-right: 8px; color: #4285f4; font-size: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #b5d0e4; font-size: 11px; }
.or span { height: 1px; flex: 1; background: #1e608d; }
.terms { margin: 18px 0; }
.trust-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding: 16px 18px;
  border: 1px solid rgba(52, 129, 179, .35); border-radius: 15px; background: rgba(3, 35, 64, .66);
}
.trust-bar > div { display: flex; gap: 10px; align-items: center; min-width: 0; }
.trust-bar > div + div { border-left: 1px solid rgba(65, 130, 170, .28); padding-left: 16px; }
.trust-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 212, 123, .16); color: #00e38a; }
.trust-bar strong, .trust-bar small { display: block; }
.trust-bar strong { font-size: 12px; }
.trust-bar small { color: #83abc5; font-size: 10px; margin-top: 2px; }

@media (max-width: 1050px) {
  .auth-page { grid-template-columns: 1fr; }
  .brand-panel { min-height: 430px; }
  .brand-content { padding-bottom: 35px; }
  .sustainability { margin-top: 38px; }
  .form-panel { min-height: auto; padding-top: 30px; }
}
@media (max-width: 620px) {
  .brand-panel { min-height: 390px; }
  .brand-content { padding: 34px 24px; }
  .brand-tagline { margin-left: 45px; margin-bottom: 30px; }
  .intro-copy h1 { font-size: 30px; }
  .intro-copy p { font-size: 14px; }
  .feature-list { margin-top: 24px; gap: 12px; }
  .feature-icon { width: 45px; height: 45px; flex-basis: 45px; }
  .feature strong { font-size: 14px; }
  .feature span { font-size: 11px; }
  .form-panel { padding: 22px 14px; }
  .auth-form { padding: 22px 18px; }
  .form-title { gap: 12px; }
  .title-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .form-title h2 { font-size: 21px; }
  .form-title p { font-size: 12px; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar > div + div { border-left: 0; border-top: 1px solid rgba(65,130,170,.28); padding-left: 0; padding-top: 10px; }
}

/* =========================================================
   TURNSTILE
========================================================= */

.turnstile-container {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    margin: 8px 0 14px;

}


/* =========================================================
   BOTÃO PROTEGIDO PELO TURNSTILE
========================================================= */

.turnstile-submit-hidden {

    display: none !important;

}