:root {
  --auth-bg: #090207;
  --auth-surface: rgba(22, 5, 20, 0.88);
  --auth-border: rgba(255, 94, 180, 0.32);
  --auth-muted: #e6b8d4;
  --auth-accent: #ff2b8c;
  --auth-accent-bright: #ff5eb4;
}

body.auth-page {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--auth-bg);
  color: #fff4fa;
  font-family: "Montserrat", sans-serif;
}

/* Auth Topbar */
.auth-header {
  position: absolute;
  z-index: 20;
  top: 20px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1140px);
  min-height: 62px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 94, 180, 0.22);
  border-radius: 999px;
  background: rgba(18, 4, 16, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 43, 140, 0.12);
  transform: translateX(-50%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.auth-brand:hover {
  transform: scale(1.03);
}

.auth-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(255, 43, 140, 0.7);
}

.auth-header-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 94, 180, 0.35);
  border-radius: 999px;
  color: #fce7f3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 43, 140, 0.08);
  transition: all 0.2s ease;
}

.auth-header-link:hover {
  border-color: rgba(255, 120, 190, 0.8);
  background: rgba(255, 43, 140, 0.22);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 43, 140, 0.35);
  transform: translateY(-1px);
}

/* Main Container */
.auth-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  box-sizing: border-box;
  padding: 110px 20px 50px;
  position: relative;
  z-index: 10;
}

/* Auth Card */
.auth-card {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 460px);
  padding: 36px 36px 32px;
  border: 1px solid var(--auth-border);
  border-radius: 26px;
  background: var(--auth-surface);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 50px rgba(255, 43, 140, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
}

.auth-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.auth-card__logo {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 43, 140, 0.75), 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 120, 190, 0.4);
  object-fit: cover;
  animation: logoFloat 5s ease-in-out infinite;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff80bf;
  background: rgba(255, 43, 140, 0.12);
  border: 1px solid rgba(255, 94, 180, 0.3);
  margin-bottom: 10px;
}

.auth-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-description {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Nav tabs switch */
.auth-tabs {
  display: flex;
  background: rgba(10, 1, 9, 0.75);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 94, 180, 0.2);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #e6b8d4;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #ff2b8c, #a8135c);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 43, 140, 0.45);
}

.auth-tab:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 43, 140, 0.12);
}

/* Form controls */
.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  color: #ffb3d9;
  font-size: 13px;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 15px;
  color: #ff80bf;
  font-size: 16px;
  pointer-events: none;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 44px 12px 42px;
  border: 1px solid rgba(255, 94, 180, 0.28);
  border-radius: 12px;
  outline: none;
  background: rgba(12, 2, 10, 0.85);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-field input.no-icon-left {
  padding-left: 16px;
}

.auth-field input::placeholder {
  color: #8c5d79;
}

.auth-field input:focus {
  background: rgba(18, 3, 15, 0.95);
  border-color: #ff2b8c;
  box-shadow: 0 0 0 3px rgba(255, 43, 140, 0.22), 0 0 20px rgba(255, 94, 180, 0.25);
}

.auth-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #ff80bf;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.auth-toggle-pwd:hover {
  color: #ffffff;
}

/* Options row */
.auth-row-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-top: -2px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5cbe2;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox input {
  width: 17px;
  height: 17px;
  accent-color: #ff2b8c;
  cursor: pointer;
}

.auth-link-subtle {
  color: #ff80bf;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link-subtle:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Submit Button */
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid rgba(255, 150, 210, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff2b8c 0%, #d41470 50%, #9e0850 100%);
  box-shadow: 0 8px 28px rgba(255, 43, 140, 0.55), 0 0 20px rgba(255, 94, 180, 0.3);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff5eb4 0%, #e6197d 50%, #b3095c 100%);
  box-shadow: 0 12px 38px rgba(255, 43, 140, 0.75), 0 0 30px rgba(255, 120, 190, 0.5);
  border-color: rgba(255, 200, 235, 0.85);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}

.auth-status {
  min-height: 20px;
  margin: 2px 0 0;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

.auth-status.is-error {
  color: #ff5e7e;
  text-shadow: 0 0 10px rgba(255, 94, 126, 0.5);
}

.auth-status.is-success {
  color: #ff80bf;
  text-shadow: 0 0 12px rgba(255, 94, 180, 0.6);
}

.auth-footer-text {
  margin-top: 14px;
  font-size: 13px;
  color: var(--auth-muted);
  text-align: center;
}

.auth-footer-text a {
  color: #ff5eb4;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .auth-header {
    width: calc(100% - 24px);
    padding: 8px 16px;
  }
}
