.auth-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(0,0,0,0.5);
}
.auth-modal {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 620px;
  min-width: 480px;
  width: min(46vw, 620px);
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--card-bg, #262F3D);
  color: #f4f4f5;
  border-left: 1px solid rgba(96, 165, 250, .16);
  box-shadow: -24px 0 70px rgba(0,0,0,.44);
  overflow-y: auto;
}
.auth-panel-inner {
  width: min(100%, 346px);
  margin: 120px auto 40px;
}
@media (min-width: 768px) {
  .auth-drawer-backdrop {
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
  }
  .auth-modal {
    width: 448px;
    min-width: 0;
    height: 600px;
    min-height: 0;
    max-height: calc(100vh - 32px);
    border: 1px solid rgba(96, 165, 250, .16);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-modal, 0 20px 60px rgba(0,0,0,.40));
  }
  .auth-panel-inner {
    margin: 52px auto 32px;
  }
}
.auth-title {
  margin: 0 0 14px;
  color: #f4f4f5;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}
.auth-passport-title {
  display: none;
}
.auth-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-size: 28px;
  line-height: 26px;
  font-weight: 300;
  cursor: pointer;
}
.auth-close:hover {
  color: #fff;
}
.auth-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 38px;
  margin: 0 0 18px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-pill, 999px);
  background: var(--bg2, #1F2937);
}
.auth-tab {
  flex: 1 1 0;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: rgba(255,255,255,.58);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.active {
  background: rgba(255,255,255,.12);
  color: #f5f5f5;
  box-shadow: none;
}
.auth-form {
  display: flex;
  flex-direction: column;
}
.auth-field-stack {
  display: grid;
  gap: 16px;
}
.auth-field-row {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.auth-label {
  display: block;
  margin: 0 0 6px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}
.auth-input {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--field-border, #6f7e91);
  border-radius: var(--radius-sm, 4px);
  outline: 0;
  background: var(--bg2, #1F2937);
  color: #f5f5f5;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.auth-input:focus {
  border-color: rgba(96,165,250,.72);
  box-shadow: 0 0 0 3px rgba(96,165,250,.14);
}
.auth-password-wrap {
  position: relative;
  display: block;
}
.auth-field-password .auth-input {
  padding-right: 44px;
}
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.auth-password-toggle:hover {
  color: #fff;
}
.auth-eye {
  display: none;
}
.auth-signup-consent {
  margin: 8px 0 0;
  color: rgba(255,255,255,.66);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.auth-signup-consent a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-signup-consent a:hover { color: #fff; }
.auth-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #fca5a5;
}
.auth-actions {
  display: flex;
  width: 100%;
  margin-top: 4px;
}
.auth-actions .wsk-btn {
  width: 100%;
  min-height: 42px;
  padding: 12px 18px;
  border-radius: var(--radius-sm, 4px);
  background: var(--action-primary, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}
.auth-google-action {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
}
.auth-text-action {
  align-self: center;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-text-action:hover { color: #fff; }
.auth-text-action-spaced { margin-top: 18px; }
.auth-recovery-success {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--radius-sm, 4px);
  background: #10b981;
  color: #07111f;
  text-align: center;
  line-height: 1.45;
}
.auth-recovery-success strong { font-size: 14px; }
.auth-recovery-success span { font-size: 13px; }
@media (max-width: 520px) {
  .auth-modal {
    min-width: 0;
    width: 100vw;
  }
  .auth-panel-inner {
    width: calc(100% - 48px);
    margin-top: 74px;
  }
}
.auth-password-toggle svg,
.auth-close svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-actions .wsk-btn:hover { filter: brightness(1.05); }
