/* AYMIA Auth V25 - minimalist toggle ONLY; the original glass/image styles are unchanged. */
.aymia-auth-page [hidden] { display:none !important; }
.aymia-auth-mode-switch{
  position:absolute; z-index:2; top:35px; right:44px;
  display:flex; align-items:center; justify-content:flex-end; gap:8px;
  white-space:nowrap;
  font:500 12px/1.4 Inter,"Helvetica Neue",Arial,sans-serif;
  color:rgba(255,255,255,.75);
}
.aymia-auth-mode-switch button{
  color:rgba(255,255,255,.69); background:transparent; border:0;
  padding:4px 1px; margin:0; min-width:0; cursor:pointer;
  font:inherit; letter-spacing:.025em;
  text-decoration:none; text-underline-offset:4px;
}
.aymia-auth-mode-switch button.is-active{
  color:#fff; font-weight:700;
  text-decoration:underline; text-decoration-thickness:1px;
}
.aymia-auth-mode-switch button:hover{color:#fff;}
.aymia-auth-mode-switch button:focus-visible,
.aymia-auth-register a:focus-visible{
  outline:2px solid #fff; outline-offset:3px; border-radius:2px;
}
.aymia-auth-registration-extra{margin:7px 0 12px;}
.aymia-auth-registration-extra .aymia-auth-reg-legal{
  margin:0 0 11px;
  color:rgba(255,255,255,.89);
  font:400 11px/1.45 Inter,"Helvetica Neue",Arial,sans-serif;
}
.aymia-auth-registration-extra .aymia-auth-reg-legal a{
  color:#fff;text-underline-offset:3px;
}
.aymia-auth-registration-extra .aymia-auth-marketing{
  display:flex;align-items:flex-start;gap:9px;
  margin:0;color:rgba(255,255,255,.91);
  font:400 11px/1.4 Inter,"Helvetica Neue",Arial,sans-serif;
}
.aymia-auth-registration-extra .aymia-auth-marketing input{
  flex:none;width:17px;height:17px;margin:1px 0 0;accent-color:#fff;
}
.aymia-auth-panel .aymia-auth-legal a { color:inherit; }
.aymia-auth-panel .aymia-auth-status{
  position:relative; z-index:2; line-height:1.35;
  color:rgba(255,255,255,.83);
}
@media (min-width:900px) and (min-height:850px){
  .aymia-auth-mode-switch{top:35px;right:44px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-brand{margin-bottom:15px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-lead{
    font-size:14px;line-height:1.44;margin-bottom:12px;
  }
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-field{margin-bottom:10px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-field input{height:32px;padding-bottom:6px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-primary{height:50px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-register{margin-top:11px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-divider{margin:10px 0;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-provider{height:45px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-legal{margin-top:12px;font-size:11px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-status{margin-top:7px;font-size:9px;}
}
@media(max-height:849px){
  .aymia-auth-mode-switch{top:23px;right:37px;font-size:11px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel{
    max-height:calc(100dvh - 20px);overflow-y:auto;
    scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent;
  }
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-brand{margin-bottom:11px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-lead{margin-bottom:10px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-field{margin-bottom:9px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-divider{margin:7px 0;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-provider-grid{margin-top:0;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-legal{margin-top:9px;}
}
@media(max-width:640px){
  .aymia-auth-mode-switch{top:22px;right:24px;gap:4px;font-size:10px;}
  .aymia-auth-registration-extra{margin:4px 0 10px;}
  .aymia-auth-registration-extra .aymia-auth-reg-legal{font-size:10px;margin-bottom:8px;}
  .aymia-auth-registration-extra .aymia-auth-marketing{font-size:10px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-brand{margin-bottom:12px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-lead{font-size:11px;line-height:1.35;margin-bottom:8px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-field{margin-bottom:8px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-primary{height:42px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-provider{height:42px;}
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel .aymia-auth-register{margin-top:8px;}
}
@media(prefers-reduced-motion:reduce){
  .aymia-auth-mode-switch *{transition:none!important;animation:none!important;}
}

/* V25.1: prevent the status text from colliding with the legal links. */
.aymia-auth-panel .aymia-auth-status{
  transform:none !important;
  margin:9px 0 0 !important;
  font-size:10.25px !important;
  line-height:1.45 !important;
  text-align:center;
  text-shadow:0 1px 4px rgba(0,0,0,.5);
}
.aymia-auth-panel .aymia-auth-legal{
  margin-bottom:0;
}
@media(max-width:640px){
  .aymia-auth-panel .aymia-auth-status{
    margin-top:6px !important;
    font-size:9px !important;
  }
}

/* V25.2 - keep the legal links and safety notice above the existing glass wave. */
@media(min-width:641px){
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel .aymia-auth-legal{
    margin-top:8px !important;
  }
}
@media(max-width:640px){
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel .aymia-auth-register{
    margin-top:10px !important;
  }
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel .aymia-auth-divider{
    margin:11px 0 9px !important;
  }
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel .aymia-auth-legal{
    margin-top:6px !important;
  }
}


/* AYMIA V32: slightly wider shared glass card and safe space above the
   ORIGINAL bottom wave. Do not change background, mask, hero or controls. */
@media (min-width:641px) {
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel,
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel {
    width:min(560px,100%);
    max-width:560px;
    padding-bottom:90px !important;
  }
  .aymia-auth-panel .aymia-auth-legal,
  .aymia-auth-panel .aymia-auth-status {
    position:relative;
    z-index:2;
    max-width:100%;
  }
}
@media (min-width:641px) and (max-height:820px) {
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel,
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel {
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
}

/* AYMIA V33 mobile: preserve the existing portrait, wave and shared card.
   Keep KVKK links + status comfortably ABOVE the mobile wave stroke. */
@media (max-width:640px) {
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel,
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel {
    padding-bottom:62px !important;
  }
}

/* AYMIA V34: reveal the existing home link without altering the approved
   portrait, glass-panel geometry, wave, or login/register layout. */
.aymia-auth-page .aymia-auth-back-home {
  display:inline-flex;
  gap:6px;
  align-items:center;
  color:#18181a;
  background:rgba(248,248,248,.86);
  border:1px solid rgba(255,255,255,.56);
  border-radius:999px;
  box-shadow:0 3px 14px rgba(0,0,0,.14);
  padding:8px 12px;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.aymia-auth-page .aymia-auth-back-home:hover {
  background:rgba(255,255,255,.96);
}
@media (max-width:640px) {
  .aymia-auth-page .aymia-auth-back-home {
    min-height:36px;
    padding:7px 10px;
    font-size:12px;
  }
}

/* Compact phones: reserve a small clear row for the home link, while the
   register card scrolls internally. No portrait, glass or wave changes. */
@media (max-width:640px) and (max-height:740px) {
  .aymia-auth-page .aymia-auth-stage {
    place-items:start center;
    align-content:start;
    padding-top:58px !important;
    padding-bottom:10px !important;
  }
  .aymia-auth-page[data-auth-mode="login"] .aymia-auth-panel,
  .aymia-auth-page[data-auth-mode="register"] .aymia-auth-panel {
    max-height:calc(100dvh - 68px) !important;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}
