/* Account entrance only; invitation dialogs keep their existing styles. */
.email-login-dialog {
  width: min(560px, calc(100vw - 28px)); max-width: none;
  max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px;
  color: #123c32; background: #f9fcfb; overflow: auto;
  box-shadow: 0 24px 100px #102e3938;
}
.email-login-dialog::backdrop { background: rgb(24 43 37 / 43%); backdrop-filter: blur(3px); }
.email-login-card {
  position: relative; isolation: isolate; overflow: hidden; min-height: 650px;
  padding: 32px 42px 155px; border: 1px solid #dce8e5; border-radius: inherit;
  background: radial-gradient(ellipse at 100% 0%, #e3f2ef 0%, transparent 44%), #fbfdfc;
}
.email-login-brand { display: block; width: 180px; height: 40px; }
.email-login-close {
  position: absolute; top: 22px; right: 24px; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #7c8a86; font: 34px/1 system-ui; cursor: pointer;
}
.email-login-close:hover { background: #e6efeb; color: #164b3d; }
.email-login-card h1 { margin: 34px 0 10px; color: #103b30; font-size: 36px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.email-login-description { margin: 0; color: #7b8782; font-size: 16px; line-height: 1.6; }
.email-login-form { display: grid; gap: 24px; margin-top: 32px; }
.email-login-field { display: grid; gap: 12px; min-width: 0; }
.email-login-field label { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; }
.email-login-field svg, .email-login-note svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: #116746; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.email-login-field input {
  width: 100%; min-width: 0; height: 50px; padding: 0 16px; border: 1.5px solid #bcd2ca;
  border-radius: 11px; background: #f5faf8b3; color: #163e33; font: inherit; font-size: 16px;
}
.email-login-field input::placeholder { color: #97a09b; opacity: 1; }
.email-login-field input:focus-visible { outline: 3px solid #0e77501a; outline-offset: 2px; border-color: #32856c; }
.email-login-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 12px; }
.email-login-send {
  border: 0; border-radius: 11px; background: #e4efe9; color: #0b623d;
  font: inherit; font-weight: 650; font-size: 16px; padding: 0 10px; cursor: pointer;
}
.email-login-send:hover:not(:disabled) { background: #d7e9df; }
.email-login-submit {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 54px; margin-top: 8px; border: 1px solid #086147; border-radius: 13px;
  background: linear-gradient(110deg, #09664c, #107354); color: #fff;
  font: inherit; font-size: 20px; font-weight: 650; cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff14;
}
.email-login-submit span { font-size: 27px; font-weight: 400; line-height: 1; }
.email-login-submit:hover:not(:disabled) { background: #075d44; }
.email-login-form button:disabled { opacity: .6; cursor: default; }
.email-login-form button:focus-visible, .email-login-close:focus-visible { outline: 3px solid #58a98c; outline-offset: 3px; }
.email-login-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 0; color: #7d8d86; font-size: 13px; line-height: 1.6; }
.email-login-note svg { width: 18px; height: 18px; stroke: #719986; }
.email-login-feedback { position: relative; z-index: 1; margin: 10px 0 0; color: #486f5e; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.email-login-feedback:empty { display: none; }
.email-login-scenery {
  position: absolute; z-index: -1; pointer-events: none; bottom: 0; left: 0; right: 0; height: 145px;
  background: linear-gradient(to bottom, #fbfdfc 0%, #fbfdfc25 55%, #e8f6f240 100%),
    url('./assets/wide_panoramic_digital_illustration_photoreal_gr.png') center 57% / cover no-repeat;
  opacity: .8;
}
.email-login-scenery::before { content: ''; position: absolute; left: -180px; bottom: -80px; width: 500px; height: 170px; border-radius: 50%; transform: rotate(21deg); background: linear-gradient(125deg, #b8e2d1b3, #deefec22); }
@media (max-width: 560px) {
  .email-login-dialog { border-radius: 23px; }
  .email-login-card { min-height: 0; padding: 26px 25px 130px; }
  .email-login-brand { width: 162px; height: 36px; }
  .email-login-close { top: 19px; right: 17px; }
  .email-login-card h1 { margin-top: 30px; font-size: 32px; }
  .email-login-description { font-size: 14px; }
  .email-login-form { margin-top: 28px; gap: 22px; }
  .email-login-field { gap: 10px; }
  .email-login-field label { font-size: 16px; }
  .email-login-field input { padding: 0 12px; font-size: 15px; }
  .email-login-code-row { grid-template-columns: minmax(0,1fr) 112px; gap: 10px; }
  .email-login-send { font-size: 14px; }
  .email-login-submit { margin-top: 6px; font-size: 18px; }
  .email-login-note { align-items: flex-start; font-size: 11px; gap: 6px; }
  .email-login-scenery { height: 125px; }
}
@media (max-height: 720px) and (min-width: 561px) {
  .email-login-card { min-height: 0; padding-top: 25px; padding-bottom: 105px; }
  .email-login-card h1 { margin-top: 24px; font-size: 32px; }
  .email-login-form { margin-top: 22px; gap: 18px; }
  .email-login-scenery { height: 100px; }
}
