/* Hosts are the only selectors exposed to module styles. Form styling lives in Shadow DOM. */
.agroma-signin,.agroma-auth-screen {
  position:fixed;inset:0;z-index:5000;display:flex;align-items:safe center;justify-content:center;
  box-sizing:border-box;width:100%;height:100%;height:100dvh;min-height:0;margin:0;padding:24px;
  overflow-y:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 25% 10%,#eaf1e3,transparent 55%),#f5f8f2;
}
.agroma-signin[hidden],.agroma-signin.hidden,.agroma-auth-screen[hidden],.agroma-auth-screen.hidden { display:none!important; }
.agroma-signin-embedded { position:static;display:block;width:100%;height:auto;padding:0;background:transparent; }
#harvest-reauth-dialog { width:420px;max-width:calc(100vw - 32px);padding:0;border:0;border-radius:16px; }
body:has(#loginPanel:not([hidden])) .od-header { display:none; }
/* Loading and access-denied surfaces are not sign-in forms. */
.agroma-auth-card { box-sizing:border-box;width:100%;max-width:420px;padding:30px;background:white;border:1px solid #dce5d5;border-radius:16px; }
.agroma-auth-card .admin-login-brand { height:42px;max-width:170px;object-fit:contain;object-position:left;margin-bottom:22px; }

:host { color-scheme:light;--signin-accent:#3a7d30; }
.signin-card {
  box-sizing:border-box;flex:none;width:100%;max-width:420px;margin:0;padding:30px;border:1px solid #dce5d5;
  border-radius:16px;background:#fff;color:#283b28;box-shadow:0 14px 48px #233c1e12;
  font:400 14px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;-webkit-text-size-adjust:100%;
}
.signin-card * { box-sizing:border-box; }
.signin-card [hidden] { display:none!important; }
.signin-card header { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px; }
.signin-card img { display:block;max-width:170px;width:auto;height:42px;object-fit:contain;object-position:left center; }
.signin-card h1 { margin:0 0 8px;font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.035em; }
.signin-card h1:focus { outline:none; }
.signin-card .intro { margin:0 0 24px;color:#6b7c64;font-size:13px;line-height:1.5; }
.signin-card form { margin:0; }
.signin-card label { display:flex;flex-direction:column;gap:6px;margin:0 0 16px;color:#506247;font-size:12px;font-weight:600; }
.signin-card input {
  display:block;width:100%;min-width:0;max-width:100%;height:46px;padding:10px 12px;border:1px solid #cdd9c5;border-radius:9px;
  background:white;color:#283b28;line-height:1.4;font-family:inherit;font-size:16px;font-weight:400;appearance:none;-webkit-appearance:none;
}
.signin-card input:focus { border-color:var(--signin-accent);outline:2px solid #3a7d3030;outline-offset:1px; }
.signin-card input[readonly] { background:#f5f8f2;color:#68785f; }
.signin-card [role=alert] { margin:0 0 12px;color:#aa3d32;font-size:13px;line-height:1.4; }
.signin-card [role=alert]:empty { display:none; }
.signin-card button { min-height:44px;border:0;background:transparent;font:600 14px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer; }
.signin-card .language { min-width:44px;padding:8px;color:#506247;border-radius:8px; }
.signin-card .submit { display:block;width:100%;min-height:46px;margin:4px 0 0;padding:10px 16px;border:1px solid var(--signin-accent);border-radius:9px;background:var(--signin-accent);color:white; }
.signin-card .cancel { width:100%;margin-top:8px;color:#506247;border-radius:9px; }
.signin-card button:focus-visible { outline:2px solid var(--signin-accent);outline-offset:3px; }
.signin-card :disabled { opacity:.6;cursor:wait; }
@media(hover:hover){.signin-card .submit:hover:not(:disabled) { background:#316b28; }.signin-card .language:hover,.signin-card .cancel:hover { background:#f0f5eb; }}
@media(max-width:560px){
 .agroma-signin,.agroma-auth-screen { padding:24px 16px;padding-bottom:max(24px,env(safe-area-inset-bottom)); }
 .agroma-signin-embedded { padding:0; }
 .signin-card { padding:24px; }
}
@media(max-height:600px){.agroma-signin,.agroma-auth-screen { align-items:flex-start;padding-block:20px; }.agroma-signin-embedded { padding:0; }}
