.auth-forgot-page {
  --auth-border: var(--border-primary);
  --auth-border-hi: var(--border-secondary);
  --auth-input-bg: var(--tertiary-bg);
  --auth-right-fg: var(--text-primary);
}

.auth-forgot-page,
.auth-forgot-page *,
.auth-forgot-page *::before,
.auth-forgot-page *::after {
  box-sizing: border-box;
}

.auth-forgot-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--primary-bg);
  font-family: 'DM Sans', sans-serif;
  display: flex;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

.auth-forgot-page #auth-contour {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.auth-forgot-page #panel-left {
  position: relative;
  z-index: 10;
  width: clamp(340px, 42vw, 520px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vh, 52px) clamp(32px, 4vw, 64px);
  background: var(--primary-bg);
  border-right: 1px solid var(--auth-border);
}

.auth-forgot-page #panel-right {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vh, 52px) clamp(32px, 4vw, 60px);
  overflow: hidden;
}

.auth-forgot-page #panel-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.05) 60%, rgba(10, 10, 10, 0.4) 100%);
  z-index: 0;
}

[data-theme="light"] .auth-forgot-page #panel-right::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 60%, rgba(0, 0, 0, 0.12) 100%);
}

.auth-forgot-page .logo-wrap {
  display: flex;
  align-items: baseline;
  gap: 0;
  opacity: 0;
  animation: authFadeUp 0.6s ease 0.1s forwards;
}

.auth-forgot-page .logo-u {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.auth-forgot-page .logo-u.shimmer {
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--text-secondary) 50%, var(--text-primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: authShimmer 3s linear infinite, authFadeUp 0.6s ease 0.1s forwards;
  opacity: 1;
}

@keyframes authShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.auth-forgot-page .logo-rest {
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 200;
  color: var(--text-secondary);
  letter-spacing: -0.03em;
}

.auth-forgot-page .logo-tag {
  margin-top: 4px;
  font-size: clamp(6px, 0.6vw, 7px);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.3s forwards;
}

.auth-forgot-page .form-header {
  margin-top: clamp(36px, 6vh, 64px);
  opacity: 0;
  animation: authFadeUp 0.6s ease 0.4s forwards;
}

.auth-forgot-page .form-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-forgot-page .form-sub {
  margin-top: 6px;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.auth-forgot-page .auth-forgot-form {
  margin-top: clamp(24px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
}

.auth-forgot-page .auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0;
  animation: authFadeUp 0.55s ease 0.5s forwards;
}

.auth-forgot-page .auth-field label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-forgot-page .input-wrap {
  position: relative;
}

.auth-forgot-page .input-wrap input {
  width: 100%;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  padding: 11px 40px 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.02em;
}

.auth-forgot-page .input-wrap input::placeholder {
  color: var(--text-muted);
}

.auth-forgot-page .input-wrap input:focus {
  border-color: var(--auth-border-hi);
  background: var(--secondary-bg);
}

.auth-forgot-page .input-wrap .icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.auth-forgot-page .btn-primary {
  margin-top: clamp(4px, 0.8vh, 8px);
  width: 100%;
  padding: 12px;
  background: var(--text-primary);
  color: var(--primary-bg);
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.6s forwards;
}

.auth-forgot-page .btn-primary:hover:not(:disabled) {
  background: var(--accent-primary);
  transform: translateY(-1px);
}

.auth-forgot-page .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-forgot-page .btn-primary.is-success {
  background: var(--success-color);
  color: #fff;
  pointer-events: none;
}

.auth-forgot-page .btn-primary.is-error {
  background: var(--danger-color);
  color: #fff;
}

.auth-forgot-page .btn-primary .btn-loading {
  display: none;
}

.auth-forgot-page .auth-links {
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.7s forwards;
}

.auth-forgot-page .auth-links a {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.auth-forgot-page .auth-links a:hover {
  color: var(--text-primary);
}

.auth-forgot-page .auth-links .auth-sep {
  margin: 0 10px;
  color: var(--text-muted);
  font-size: 10px;
}

.auth-forgot-page .footer-left {
  display: flex;
  gap: 18px;
  align-items: center;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.8s forwards;
}

.auth-forgot-page .footer-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.auth-forgot-page .footer-sep {
  width: 1px;
  height: 10px;
  background: var(--auth-border);
}

.auth-forgot-page .right-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 18px);
  opacity: 0;
  animation: authFadeLeft 0.8s ease 0.6s forwards;
}

.auth-forgot-page .right-tag {
  font-size: clamp(7px, 0.65vw, 8px);
  font-weight: 500;
  color: var(--auth-right-fg);
  opacity: 0.25;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.auth-forgot-page .right-title {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 300;
  color: var(--auth-right-fg);
  opacity: 0.8;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth-forgot-page .right-title strong {
  font-weight: 700;
  opacity: 0.92;
}

.auth-forgot-page .right-divider {
  width: clamp(32px, 4vw, 52px);
  height: 1px;
  background: linear-gradient(90deg, var(--auth-right-fg), transparent);
  opacity: 0.25;
}

.auth-forgot-page .right-desc {
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 300;
  color: var(--auth-right-fg);
  opacity: 0.35;
  letter-spacing: 0.03em;
  line-height: 1.7;
  max-width: 320px;
}

.auth-forgot-page .right-coords {
  position: absolute;
  top: clamp(20px, 3vh, 36px);
  right: clamp(20px, 2.5vw, 36px);
  z-index: 1;
  text-align: right;
  opacity: 0;
  animation: authFadeIn 0.6s ease 1s forwards;
}

.auth-forgot-page .right-coords span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--auth-right-fg);
  opacity: 0.15;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}

.auth-forgot-page .text-danger {
  font-size: 11px;
  color: var(--danger-color);
  margin-top: 4px;
}

.auth-forgot-page .auth-forgot-form .text-danger.mb-3 {
  margin-bottom: 12px;
}

.auth-forgot-page .confirmation-message {
  margin-top: clamp(24px, 4vh, 40px);
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.5s forwards;
  text-align: center;
}

.auth-forgot-page .confirmation-message .confirmation-icon {
  display: flex;
  justify-content: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--success-color);
  margin-bottom: 16px;
}

.auth-forgot-page .confirmation-message .confirmation-title {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-forgot-page .confirmation-message .confirmation-text {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.auth-forgot-page .confirmation-message .confirmation-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--success-color);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: left;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.auth-forgot-page .confirmation-message .confirmation-tip i {
  color: var(--success-color);
  flex-shrink: 0;
}

.auth-forgot-page .confirmation-message .confirmation-icon.confirmation-icon-error {
  color: var(--danger-color);
}

.auth-forgot-page .confirmation-message .confirmation-tip.confirmation-tip-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--danger-color);
}

.auth-forgot-page .confirmation-message .confirmation-tip.confirmation-tip-error i {
  color: var(--danger-color);
}

.auth-forgot-page .confirmation-message .confirmation-cta {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 12px;
  margin-bottom: 24px;
  background: var(--text-primary);
  color: var(--primary-bg);
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.auth-forgot-page .confirmation-message .confirmation-cta:hover {
  background: var(--accent-primary);
  color: var(--primary-bg);
  transform: translateY(-1px);
}

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes authFadeLeft {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 680px) {
  .auth-forgot-page {
    overflow-y: auto;
  }

  .auth-forgot-page #panel-right {
    display: none;
  }

  .auth-forgot-page #panel-left {
    width: 100%;
  }
}
