@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&display=swap");

/* ===== Ganader AI login (ga-) ===== */
.ga-auth{position:fixed;inset:0;z-index:999;display:flex;flex-wrap:wrap;overflow-y:auto;background:#fff;font-family:Archivo,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1c2d42}
.ga-auth [hidden]{display:none !important}
.ga-auth *{box-sizing:border-box}

/* Brand panel */
.ga-brand{flex:1 1 520px;min-width:0;min-height:100vh;background:#dfeaf5;padding:44px 56px;display:flex;flex-direction:column;gap:28px}
.ga-lockup{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;font-stretch:112%;letter-spacing:-.01em}
.ga-hero{flex:1;display:flex;flex-direction:column;justify-content:center;gap:28px}
.ga-tag{width:230px;height:auto;transform-origin:50% 14%;animation:ga-swing 1.8s .25s cubic-bezier(.3,.6,.3,1) both}
.ga-copy{display:flex;flex-direction:column;gap:14px;max-width:30rem}
.ga-tagline{margin:0;font-size:52px;line-height:1.02;font-weight:750;font-stretch:112%;letter-spacing:-.015em}
.ga-sub{margin:0;font-size:18px;line-height:1.55;color:#3f5470}
.ga-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;font-size:14px;color:#3f5470}
.ga-made{display:inline-flex;align-items:center;gap:10px;font-weight:600;color:#1c2d42}
.ga-pole{display:inline-flex;align-items:center}
.ga-pole i{width:2px;height:22px;background:#5882ad;border-radius:1px;margin-top:6px}
.ga-flag{border-radius:1px;box-shadow:0 1px 2px rgba(28,45,66,.25);transform-origin:0 50%;animation:ga-flutter 3.2s ease-in-out infinite}

/* Form panel */
.ga-panel{flex:1 1 440px;min-width:0;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:48px 24px;background:#fff}
.ga-box{width:100%;max-width:400px}
.ga-form{display:flex;flex-direction:column;gap:18px}
.ga-title{margin:0;font-size:32px;font-weight:750;font-stretch:112%;letter-spacing:-.01em;color:#1c2d42}
.ga-lead{margin:8px 0 0;font-size:16px;line-height:1.5;color:#4a5d75}
.ga-step{margin:0 0 6px;font-size:14px;font-weight:600;color:#4a5d75}
.ga-field{display:flex;flex-direction:column;gap:6px}
.ga-field label{font-size:15px;font-weight:600;color:#1c2d42}
.ga-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.ga-hint{margin:0;font-size:14px;color:#4a5d75}
.ga-input{height:48px;width:100%;border:1.5px solid #b9c9db;border-radius:8px;padding:0 14px;font:inherit;font-size:16px;color:#1c2d42;background:#fff}
.ga-input:focus{outline:none;border-color:#334b69;box-shadow:0 0 0 4px rgba(118,169,224,.4)}
.ga-input.is-code{font-size:18px;font-weight:700;font-stretch:75%;letter-spacing:.12em;text-transform:uppercase}
.ga-input.is-otp{height:60px;font-size:30px;font-weight:800;font-stretch:70%;letter-spacing:.4em;text-align:center}
.ga-pw{position:relative}
.ga-pw .ga-input{padding-right:52px}
.ga-eye{position:absolute;right:2px;top:2px;width:44px;height:44px;border:0;border-radius:6px;background:transparent;color:#4a5d75;display:flex;align-items:center;justify-content:center;cursor:pointer}
.ga-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:#eef3f8;padding:4px;border-radius:10px}
.ga-seg button{height:44px;border:0;border-radius:7px;background:transparent;color:#4a5d75;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.ga-seg button:hover{color:#1c2d42}
.ga-seg button[aria-pressed="true"]{background:#fff;color:#1c2d42;box-shadow:0 1px 2px rgba(28,45,66,.18)}
.ga-btn{height:50px;width:100%;border:0;border-radius:8px;background:#334b69;color:#fff;font:inherit;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.ga-btn:hover{background:#26384f}
.ga-btn:active{transform:translateY(1px)}
.ga-btn:disabled{opacity:.85;cursor:progress}
.ga-spin{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:ga-spin .8s linear infinite}
.ga-btn.is-busy .ga-spin{display:inline-block}
.ga-alt{margin:0;font-size:15px;color:#4a5d75}
.ga-link{background:none;border:0;padding:12px 2px;margin:-12px -2px;font:inherit;font-weight:700;color:#334b69;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.ga-link:hover{color:#1c2d42}
.ga-back{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:44px;background:none;border:0;padding:0;font:inherit;font-size:15px;font-weight:600;color:#334b69;cursor:pointer}
.ga-msg{margin:0;min-height:1.3em;font-size:15px;line-height:1.45;color:#b42318}
.ga-msg:empty{min-height:0}
.ga-info{margin:0;font-size:15px;color:#2e6b45}
.ga-info:empty{display:none}
.ga-done{display:flex;flex-direction:column;gap:14px}
.ga-done p{margin:0;font-size:16px;line-height:1.55;color:#4a5d75}
.ga-auth button:focus-visible,.ga-auth a:focus-visible{outline:3px solid #76a9e0;outline-offset:2px}
.ga-enter{animation:ga-enter .22s ease-out both}

/* Motion */
@keyframes ga-swing{0%{opacity:0;transform:translateY(-40px) rotate(-18deg)}30%{opacity:1;transform:translateY(0) rotate(10deg)}52%{transform:rotate(-6deg)}70%{transform:rotate(3deg)}86%{transform:rotate(-1deg)}100%{transform:rotate(0)}}
@keyframes ga-flutter{0%,100%{transform:perspective(60px) rotateY(0) skewY(0)}25%{transform:perspective(60px) rotateY(-10deg) skewY(-3deg)}50%{transform:perspective(60px) rotateY(4deg) skewY(2deg)}75%{transform:perspective(60px) rotateY(-6deg) skewY(-1.5deg)}}
@keyframes ga-enter{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@keyframes ga-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ga-auth *{animation:none !important}}

/* Phones and narrow windows: get people to the form fast */
@media (max-width:960px){
  .ga-brand{min-height:auto;padding:22px 20px;gap:14px}
  .ga-hero{gap:10px}
  .ga-tag,.ga-sub{display:none}
  .ga-tagline{font-size:28px}
  .ga-lockup{font-size:20px}
  .ga-panel{min-height:auto;align-items:flex-start;padding:28px 20px 40px}
}

/* Log out button at the bottom of the sidebar */
.ga-logout{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;margin-top:auto;padding:12px;border:0;border-top:1px solid rgba(201,216,236,.18);border-radius:0;background:transparent;color:#c9d8ec;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.ga-logout:hover{background:rgba(118,169,224,.18);color:#fff;border-radius:11px}
.ga-logout:focus-visible{outline:3px solid #76a9e0;outline-offset:2px;border-radius:11px}
.ga-logout:disabled{opacity:.6;cursor:progress}
.ga-logout + .sidebar-foot{margin-top:0}
