/* FILE: public/assets/css/auth.css */

/* ==========================================================
   LOCAL FONT: NOTO SANS (Google Fonts ZIP)
   Place these files in:
   public/assets/fonts/NotoSans/
     - NotoSans-VariableFont_wdth,wght.ttf
     - NotoSans-Italic-VariableFont_wdth,wght.ttf
========================================================== */
@font-face{
  font-family:"Noto Sans";
  src:url("/assets/fonts/NotoSans/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight:100 900;
  font-stretch:62.5% 100%;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Noto Sans";
  src:url("/assets/fonts/NotoSans/NotoSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight:100 900;
  font-stretch:62.5% 100%;
  font-style:italic;
  font-display:swap;
}

/* ==========================================================
  AUTH STYLES
========================================================== */

/* Theme Variables */
:root{
  --bg: #0f1115;

  --panel: rgba(18, 22, 28, .72);
  --border: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.60);

  --danger: #ff5b6e;
  --radius: 14px;

  --brand-1: #6F4E9B;
  --brand-2: var(--btn-primary-color, #8E6BB8);
  --brand-glow: rgba(142,107,184,.55);
  --btn-primary-color: #fbbf24;
  --btn-hover-glow-color: #f59e0b;

  --auth-hero: none;
}

/* ==========================================================
   BASE
========================================================== */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: var(--auth-bg-color, var(--bg));
  color: var(--text);
  font-family: "Noto Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
button, input, select, textarea{ font-family: inherit; }

/* ==========================================================
   UTILITIES
========================================================== */
.t-center{ text-align:center; }
.mt-12{ margin-top:12px; }
.mt-14{ margin-top:14px; }
.muted-xs{ color: var(--muted); font-size: 14px; }

/* ==========================================================
   LAYOUT
========================================================== */
.auth-shell{
  min-height: 100vh;
  display:flex;
}

.auth-panel{
  flex: 0 0 45%;
  min-width: 460px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 46px;
  position: relative;
  background-color: var(--auth-bg-color, transparent);
}

.panel{
  width: 100%;
  max-width: 560px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;

  position: relative;
}

/* Content centered + footer pinned bottom */
.panel-with-footer{
  min-height: calc(100vh - 92px);
  display:flex;
  flex-direction: column;
}
.panel-main{ flex: 1 1 auto; }
.panel-main-centered{
  display:flex;
  flex-direction: column;
  justify-content: center;
}
.panel-footer{
  flex: 0 0 auto;
  margin-top: 22px;
  padding-top: 8px;
}

/* ==========================================================
  TOP CONTROLS (LANG + THEME)
========================================================== */
.auth-top-center{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

/* details/summary dropdown */
.lang-dd{ position: relative; }
.lang-dd > summary{ list-style: none; cursor: pointer; }
.lang-dd > summary::-webkit-details-marker{ display:none; }

.lang-dd__btn{
  padding: 0;
  min-width: 0;
  width: auto;
  height: auto;
  border-radius: 0;

  border: none;
  background: transparent;
  box-shadow: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.auth-top-center .lang-dd__btn:hover{
  transform: none;
  background: transparent;
  border-color: transparent;
}

.auth-top-center .lang-dd__btn::after{
  display:none;
}

.auth-top-center .flag-svg{
  width: 24px;
  height: 24px;
  display: block;
  box-shadow: none;
  border-radius: 999px;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  object-fit: cover;
}

.lang-dd__menu{
  position: absolute;
  top: 44px;
  right: 0;
  width: 180px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(18, 22, 28, .92);
  backdrop-filter: blur(10px);
  padding: 8px;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  z-index: 50;
}

.lang-dd__item{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.90);
  cursor: pointer;
  transition: background 120ms ease;
}

.lang-dd__item:hover{
  background: rgba(255,255,255,.08);
}

.lang-dd__item .flag-svg{
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
}

/* details open/close */
.lang-dd:not([open]) .lang-dd__menu{ display:none; }
.lang-dd[open] .lang-dd__menu{ display:block; }

/* ==========================================================
   TYPOGRAPHY (BIGGER)
========================================================== */
.h1{
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 780;
}
.p{
  margin: 0 0 26px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================
   FORM CONTROLS
========================================================== */
.field{ margin-bottom: 18px; }

.label{
  display:block;
  font-size: 14px;
  font-weight: 650;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
}

.input{
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
  font-size: 15px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.input:focus{
  border-color: color-mix(in srgb, var(--btn-primary-color, #fbbf24) 75%, transparent);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

/* ==========================================================
   INPUT ICONS
========================================================== */
.input-has-icon{ position: relative; width: 100%; }

.input-has-icon .field-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,.60);
  opacity: .98;
  pointer-events: none;
  z-index: 3;
}

.input-has-icon .input{
  padding-left: 48px !important;
  position: relative;
  z-index: 1;
}
.input-has-icon:focus-within .field-icon{
  color: var(--btn-primary-color, #fbbf24);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--btn-primary-color, #fbbf24) 35%, transparent));
}

/* ==========================================================
   ROW / CHECKBOX (BIGGER)
========================================================== */
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 12px 0 18px 0;
}

.checkbox{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.68);
}
.checkbox input[type="checkbox"]{ accent-color: var(--btn-primary-color, #fbbf24); }

/* ==========================================================
   BUTTONS + SPINNER
========================================================== */
.btn{
  width:100%;
  padding: 14px 14px;
  border-radius: 5px;
  border: none;
  background: linear-gradient(135deg, var(--btn-primary-color, #fbbf24) 0%, color-mix(in srgb, var(--btn-primary-color, #fbbf24) 85%, #000) 100%);
  color: #000;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .2px;
  cursor:pointer;
  box-shadow: rgba(245, 244, 247, .25) 0 1px 1px inset;
  transition: all 0.3s cubic-bezier(.05, .03, .35, 1);
}
.btn:hover{
  opacity: 0.7;
}
.btn:active{ transform: translateY(0); }
.btn:disabled{ pointer-events:none; }

.btn-inner{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  width: 100%;
}

.spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: rgba(255,255,255,.95);
  animation: spin .75s linear infinite;
  display: none;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.btn.is-loading .spinner,
.btn[aria-busy="true"] .spinner,
.btn[data-loading="1"] .spinner{ display:inline-block; }

/* ==========================================================
   LINKS / FOOTER
========================================================== */
.link{
  color: var(--btn-primary-color, #fbbf24);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.link:hover{
  text-decoration: underline;
  text-shadow: 0 0 10px color-mix(in srgb, var(--btn-primary-color, #fbbf24) 45%, transparent);
}

.footer{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align:center;
  line-height: 1.55;
}

/* ==========================================================
   OAUTH (RESPONSIVE + ICON FIX)
========================================================== */
.oauth-block{ margin-top: 22px; }

.oauth-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  margin: 22px 0 18px;
}
.oauth-divider::before,
.oauth-divider::after{
  content:"";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(255,255,255,.12);
}
.oauth-divider span{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  font-weight: 700;
}

.oauth-buttons{
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.oauth-btn{
  width: 100%;
  margin: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px 14px;
  border-radius: 10px;
  text-decoration:none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  transition: background 120ms ease, border-color 120ms ease;
}
.oauth-btn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.oauth-inner{
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.oauth-inner::after{ content: none; display:none; }

.oauth-icon{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transform: translateZ(0);
}
.oauth-icon svg{ display:block; width: 18px; height: 18px; }

.oauth-label{
  justify-self: center;
  text-align: center;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.oauth-discord .oauth-icon{ color: #5865F2; }

/* ==========================================================
   RIGHT HERO
========================================================== */
.auth-hero{
  flex: 1 1 55%;
  position: relative;
  overflow:hidden;
  background-color: var(--auth-bg-color, #111);
  border-radius: 18px;
  margin: 16px 16px 16px 0;
}
@media (max-width: 768px){
  .auth-hero{ border-radius: 0; margin: 0; }
}
.auth-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--auth-hero);
  background-size: var(--auth-bg-background-size, 100%);
  background-position: var(--auth-bg-position-x, 50%) var(--auth-bg-position-y, 50%);
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(var(--auth-bg-contrast, 100%)) opacity(var(--auth-bg-opacity, 1));
}
.auth-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(80% 80% at 25% 25%, rgba(0,0,0,.03), rgba(0,0,0,.15)),
    linear-gradient(270deg, rgba(0,0,0,.02), rgba(0,0,0,.10));
  pointer-events: none;
}
.hero-logo{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  user-select: none;
  pointer-events: none;
}
.hero-logo img{
  width: clamp(220px, 28vw, 420px);
  height: auto;
  display:block;
  transform-origin: center;
  transform: scale(var(--auth-logo-scale, 1));
  filter: contrast(var(--auth-logo-contrast, 100%));
  opacity: var(--auth-logo-opacity, 1);
}

/* Standalone logo (when no background exists) */
.auth-logo-standalone{
  flex: 1 1 55%;
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  user-select: none;
  pointer-events: none;
  border-radius: 18px;
  margin: 16px 16px 16px 0;
}
@media (max-width: 768px){
  .auth-logo-standalone{ border-radius: 0; margin: 0; flex: 0 0 280px; }
}
.auth-logo-standalone img{
  width: clamp(220px, 28vw, 420px);
  height: auto;
  display:block;
  transform-origin: center;
  transform: scale(var(--auth-logo-scale, 1));
  filter: contrast(var(--auth-logo-contrast, 100%));
  opacity: var(--auth-logo-opacity, 1);
}


/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 1100px){
  .auth-panel{ min-width: 420px; padding: 38px; }
  .panel-with-footer{ min-height: calc(100vh - 76px); }
}
@media (max-width: 900px){
  .auth-panel{ flex-basis: 55%; min-width: 0; padding: 32px; }
  .auth-hero{ flex-basis: 45%; }
  .panel-with-footer{ min-height: calc(100vh - 64px); }
}
@media (max-width: 768px){
  .auth-shell{ flex-direction: column-reverse; }
  .auth-hero{ flex: 0 0 280px; }

  .auth-panel{
    flex: 1 1 auto;
    padding: 24px;
    min-width: 0;
  }

  .panel{ max-width: 520px; }
  .panel-with-footer{ min-height: auto; }
  .panel-main-centered{ justify-content: flex-start; }

  .panel-footer{ margin-top: 20px; padding-top: 0; }

  .hero-logo img{ width: clamp(210px, 64vw, 340px); }

}

/* ==========================================================
   DESKTOP SCALE (NO SCROLL)
========================================================== */
@media (min-width: 900px){
  .auth-panel{ padding: 44px 56px; min-width: 520px; }
  .panel{ max-width: 640px; }

  .panel-footer{ margin-top: 14px; padding-top: 0; }

  .h1{ font-size: 32px; margin-bottom: 10px; }
  .p{ font-size: 17px; margin-bottom: 22px; }

  .field{ margin-bottom: 14px; }
  .row{ margin: 10px 0 14px 0; }

  .label{ font-size: 15px; margin-bottom: 10px; }
  .muted-xs{ font-size: 15px; }
  .link{ font-size: 15px; }
  .checkbox{ font-size: 15px; }

  .input{
    font-size: 16px;
    padding: 14px 14px;
    border-radius: 12px;
  }
  .input-has-icon .input{ padding-left: 52px !important; }
  .input-has-icon .field-icon{ left: 16px; width: 24px; height: 24px; }

  .btn{ font-size: 17px; padding: 15px 16px; border-radius: 12px; }
  .spinner{ width: 17px; height: 17px; }

  .oauth-block{ margin-top: 16px; }
  .oauth-divider{ margin: 16px 0 14px; }
  .oauth-buttons{ gap: 12px; }
  .oauth-btn{ font-size: 16px; padding: 15px 16px; border-radius: 12px; }

  .footer{ font-size: 13.5px; }
}

@media (min-width: 900px) and (max-height: 820px){
  .auth-panel{ padding: 36px 52px; }
  .h1{ font-size: 30px; }
  .p{ font-size: 16px; margin-bottom: 18px; }

  .btn{ padding: 14px 16px; }
  .oauth-btn{ padding: 14px 16px; }

  .oauth-block{ margin-top: 14px; }
  .oauth-divider{ margin: 14px 0 12px; }

  .panel-footer{ margin-top: 12px; }
}

/* ==========================================================
   ADDITIONS (SAFE) G�� Alerts + Autofill + Password Toggle + Lang Menu Safety
========================================================== */

/* ---------- Alerts (inline notifications) ---------- */
.alert{
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px 0;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.5;
  transition: opacity 260ms ease, transform 260ms ease;
}
.alert-error{
  border-color: rgba(255,91,110,.55);
  box-shadow: 0 0 0 1px rgba(255,91,110,.14) inset;
}
.alert-list{
  margin: 0;
  padding-left: 18px;
}
.alert-list li{
  margin: 3px 0;
  transition: opacity 260ms ease, transform 260ms ease;
}
.alert.is-hiding{
  opacity: 0;
  transform: translateY(-2px);
}
.alert-list li.is-hiding{
  opacity: 0;
  transform: translateY(-2px);
}

/* ---------- Autofill fixes (Chromium + Firefox) ---------- */
:root{ --input-bg: rgba(255,255,255,.06); }

.input{
  background: var(--input-bg);
  background-color: var(--input-bg);
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active{
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
  caret-color: rgba(255,255,255,0.92) !important;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
  border-color: rgba(255,255,255,.12) !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-out 0s;
}
[data-theme="light"] .input:-webkit-autofill,
[data-theme="light"] .input:-webkit-autofill:hover,
[data-theme="light"] .input:-webkit-autofill:focus,
[data-theme="light"] .input:-webkit-autofill:active{
  -webkit-text-fill-color: rgba(10,12,15,.92) !important;
  caret-color: rgba(10,12,15,.92) !important;
  border-color: rgba(0,0,0,.14) !important;
}



/* ---------- Password visibility toggle (eye icon) ---------- */
.input-has-icon.password-field .input{ padding-right: 46px !important; }

.pass-toggle{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
[data-theme="light"] .pass-toggle{ color: rgba(10,12,15,.64); }

.pass-toggle:hover,
.pass-toggle:active{
  background: transparent !important;
  border: 0 !important;
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
}
.pass-toggle:focus{ outline: none; }
.pass-toggle:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(142,107,184,.35);
  border-radius: 8px;
}
.pass-ico{ width: 18px; height: 18px; display: none; }
.pass-toggle[data-state="hidden"] .pass-ico-show{ display:block; }
.pass-toggle[data-state="shown"]  .pass-ico-hide{ display:block; }

/* ---------- Language dropdown safety (z-index / clipping) ---------- */
.auth-panel, .panel{ overflow: visible; }
.auth-top-center .lang-dd__menu{ z-index: 99999; }

/* ==========================================================
   FIX: remove underline next to flags inside language dropdown
   (only affects language menu items, not normal links)
========================================================== */
.lang-dd__menu a,
.lang-dd__menu a:hover,
.lang-dd__menu a:focus,
.lang-dd__menu a:active{
  text-decoration: none !important;
  box-shadow: none !important;
}
.lang-dd__menu .lang-dd__item{
  text-decoration: none !important;
}

/* ==========================================================
   Password strength meter styles
========================================================== */
.pwd-indicator{ display: none; margin-top: 10px; }
.pwd-indicator.is-visible{ display: block; }

.pwd-meter{
  height: 10px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .pwd-meter{
  background: rgba(0,0,0,.08);
}

.pwd-meter__fill{
  height: 100%;
  width: 0%;
  transition: width .22s ease, background-color .22s ease;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.08));
}

/* Color states */
.pwd-meter__fill.is-weak{ 
  background: linear-gradient(90deg, #ff5b6e, #ff7b8a) !important;
}
.pwd-meter__fill.is-medium{ 
  background: linear-gradient(90deg, #ffb86b, #ffd18a) !important;
}
.pwd-meter__fill.is-good{ 
  background: linear-gradient(90deg, #7ac86d, #9fe68f) !important;
}
.pwd-meter__fill.is-strong{ 
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2)) !important;
  box-shadow: 0 0 12px var(--brand-glow);
}
.pwd-meter__fill.is-match{ 
  background: linear-gradient(90deg, #4cd964, #6ff07c) !important;
}
.pwd-meter__fill.is-mismatch{ 
  background: linear-gradient(90deg, #ff5b6e, #ff7b8a) !important;
}

.pwd-meter__text{ 
  margin-top: 8px; 
  font-size: 13px; 
  color: var(--muted);
  font-weight: 600;
}
.pwd-meter__text.is-match{ 
  color: #4cd964; 
  font-weight: 650;
}
[data-theme="light"] .pwd-meter__text.is-match{ 
  color: #2ea03f;
}
.pwd-meter__text.is-mismatch{ 
  color: #ff5b6e;
  font-weight: 650;
}
[data-theme="light"] .pwd-meter__text.is-mismatch{ 
  color: #e63950;
}

/* ==========================================================
   AUTH LOGO ANIMATIONS
========================================================== */

/* Heartbeat animation - includes scale preservation */
@keyframes auth-heartbeat {
  0%, 100% { transform: scale(var(--auth-logo-scale, 1)); }
  14% { transform: scale(calc(1.08 * var(--auth-logo-scale, 1))); }
  28% { transform: scale(var(--auth-logo-scale, 1)); }
  42% { transform: scale(calc(1.08 * var(--auth-logo-scale, 1))); }
  70% { transform: scale(var(--auth-logo-scale, 1)); }
}

/* Pulse animation */
@keyframes auth-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Bounce animation - includes scale preservation */
@keyframes auth-bounce {
  0%, 100% { transform: translateY(0) scale(var(--auth-logo-scale, 1)); }
  50% { transform: translateY(-20px) scale(var(--auth-logo-scale, 1)); }
}

/* Swing animation - includes scale preservation */
@keyframes auth-swing {
  0% { transform: rotate(0deg) scale(var(--auth-logo-scale, 1)); }
  20% { transform: rotate(15deg) scale(var(--auth-logo-scale, 1)); }
  40% { transform: rotate(-10deg) scale(var(--auth-logo-scale, 1)); }
  60% { transform: rotate(5deg) scale(var(--auth-logo-scale, 1)); }
  80% { transform: rotate(-5deg) scale(var(--auth-logo-scale, 1)); }
  100% { transform: rotate(0deg) scale(var(--auth-logo-scale, 1)); }
}

/* Shake animation - includes scale preservation */
@keyframes auth-shake {
  0%, 100% { transform: translateX(0) scale(var(--auth-logo-scale, 1)); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px) scale(var(--auth-logo-scale, 1)); }
  20%, 40%, 60%, 80% { transform: translateX(8px) scale(var(--auth-logo-scale, 1)); }
}

/* Flip animation - includes scale preservation */
@keyframes auth-flip {
  0% { transform: rotateY(0deg) scale(var(--auth-logo-scale, 1)); }
  100% { transform: rotateY(360deg) scale(var(--auth-logo-scale, 1)); }
}

/* Animation classes for hero-logo and auth-logo-standalone */
.hero-logo.animate-heartbeat img,
.auth-logo-standalone.animate-heartbeat img {
  animation-name: auth-heartbeat;
  animation-duration: calc(1.3s / var(--auth-logo-animation-speed, 1));
  animation-timing-function: cubic-bezier(0.21, 0.53, 0.56, 0.84);
  animation-iteration-count: infinite;
}

.hero-logo.animate-pulse img,
.auth-logo-standalone.animate-pulse img {
  animation-name: auth-pulse;
  animation-duration: calc(2s / var(--auth-logo-animation-speed, 1));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-logo.animate-bounce img,
.auth-logo-standalone.animate-bounce img {
  animation-name: auth-bounce;
  animation-duration: calc(1s / var(--auth-logo-animation-speed, 1));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-logo.animate-swing img,
.auth-logo-standalone.animate-swing img {
  animation-name: auth-swing;
  animation-duration: calc(1s / var(--auth-logo-animation-speed, 1));
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  animation-iteration-count: infinite;
  transform-origin: top center;
}

.hero-logo.animate-shake img,
.auth-logo-standalone.animate-shake img {
  animation-name: auth-shake;
  animation-duration: calc(0.5s / var(--auth-logo-animation-speed, 1));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-logo.animate-flip img,
.auth-logo-standalone.animate-flip img {
  animation-name: auth-flip;
  animation-duration: calc(2s / var(--auth-logo-animation-speed, 1));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  perspective: 1000px;
}

