/* דף ההתחברות */
/* ===== דף התחברות ===== */
/* מכסה את כל האתר עד שהמשתמש מתחבר. רקע #FFFFFF,
   הכותרת והכפתור ממורכזים יחד במסך, 36 פיקסלים ביניהם */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--box-bg);
}
.login-screen[hidden] {
  display: none;
}
/* עד שיודעים אם המשתמש כבר מחובר, הדף ריק (בלי הבהוב של הכפתור) */
.login-screen:not(.is-ready) .login-box {
  visibility: hidden;
}
.login-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.login-title {
  margin: 0;
  padding: 0 16px;
  color: var(--text);
  font-size: calc(24px * var(--a11y-text, 1));
  font-weight: 600;
  text-align: center;
}
/* "התחברות באמצעות google": 400 על 58, רקע #FFFFFF, מסגרת 1 #DDDDDD, פינות 29 */
.google-login {
  width: min(400px, calc(100% - 32px));
  height: 58px;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--box-bg);
  border: 1px solid var(--box-stroke);
  border-radius: 29px;
  font-family: inherit;
  font-size: calc(16px * var(--a11y-text, 1));
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}
/* הלוגו של Google משמאל למשפט: 18 על 18, 12 פיקסלים מהמשפט.
   הלוגו והמשפט ממורכזים יחד בתוך הכפתור */
.google-login {
  gap: 12px;
}
.google-logo {
  flex: none;
  display: block;
  width: 18px;
  height: 18px;
}
/* hover: המסגרת נצבעת ב-var(--c-9A9A9A) */
@media (hover: hover) {
  :where(html:not(.phone-ui)) .google-login:not(:disabled):hover{
    border-color: var(--placeholder);
  }
}
.google-login:disabled {
  cursor: default;
}
/* הערה על מדיניות הפרטיות: במרכז תחתית העמוד, 25 פיקסלים מלמטה */
.login-legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(25px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0 16px;
  color: var(--placeholder);
  font-size: calc(14px * var(--a11y-text, 1));
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.login-legal a {
  color: var(--selected);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.login-screen:not(.is-ready) .login-legal {
  visibility: hidden;
}
.google-login:focus-visible {
  outline: 2px solid var(--send-active);
  outline-offset: 2px;
}

/* reCAPTCHA (App Check): הסמל של Google מוסתר, והטקסט הנדרש מוצג במסך ההתחברות */
.grecaptcha-badge {
  visibility: hidden;
}
