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

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

.auth-login-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-login-page #auth-contour {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.auth-login-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-login-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-login-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-login-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-login-page .logo-wrap {
  display: flex;
  align-items: baseline;
  gap: 0;
  opacity: 0;
  animation: authFadeUp 0.6s ease 0.1s forwards;
}

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

.auth-login-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-login-page .logo-rest {
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 200;
  color: var(--text-secondary);
  letter-spacing: -0.03em;
}

.auth-login-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-login-page .form-header {
  margin-top: clamp(36px, 6vh, 64px);
  opacity: 0;
  animation: authFadeUp 0.6s ease 0.4s forwards;
}

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

.auth-login-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-login-page .auth-login-form {
  margin-top: clamp(24px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
}

.auth-login-page .auth-login-form-google {
  margin-top: 0;
}

.auth-login-page .auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0;
  animation: authFadeUp 0.55s ease var(--d, 0.5s) forwards;
}

.auth-login-page .auth-field:nth-child(1) { --d: 0.5s; }
.auth-login-page .auth-field:nth-child(2) { --d: 0.6s; }

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

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

.auth-login-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-login-page .input-wrap input::placeholder {
  color: var(--text-muted);
}

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

.auth-login-page .input-wrap .icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.auth-login-page .input-wrap .icon:hover {
  color: var(--text-secondary);
}

.auth-login-page .remember {
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.7s forwards;
  cursor: pointer;
  width: fit-content;
}

.auth-login-page .remember input[type="checkbox"] {
  display: none;
}

.auth-login-page .check-box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--auth-border-hi);
  border-radius: 2px;
  background: var(--auth-input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.auth-login-page .remember input:checked + .check-box {
  background: var(--auth-border-hi);
  border-color: var(--border-focus);
}

.auth-login-page .remember input:checked + .check-box::after {
  content: '✓';
  font-size: 9px;
  color: var(--text-secondary);
}

.auth-login-page .remember span {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.auth-login-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.2s ease;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.8s forwards;
}

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

.auth-login-page .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

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

.auth-login-page .link-forgot {
  text-align: center;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.9s forwards;
}

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

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

.auth-login-page .divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: authFadeUp 0.5s ease 1s forwards;
}

.auth-login-page .divider-or::before,
.auth-login-page .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-login-page .divider-or span {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.18em;
}

.auth-login-page .btn-google {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  opacity: 0;
  animation: authFadeUp 0.5s ease 1.05s forwards;
  text-decoration: none;
}

.auth-login-page .btn-google:hover {
  border-color: var(--auth-border-hi);
  color: var(--text-primary);
  background: var(--tertiary-bg);
}

.auth-login-page .g-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-login-page .g-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-login-page .signup-line {
  text-align: center;
  opacity: 0;
  animation: authFadeUp 0.5s ease 1.1s forwards;
}

.auth-login-page .signup-line p {
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.auth-login-page .signup-line a {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  display: inline-block;
  margin-top: 5px;
}

.auth-login-page .signup-line a:hover {
  color: var(--text-primary);
}

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

.auth-login-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-login-page .footer-sep {
  width: 1px;
  height: 10px;
  background: var(--auth-border);
}

.auth-login-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-login-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-login-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-login-page .right-title strong {
  font-weight: 700;
  opacity: 0.92;
}

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

.auth-login-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-login-page .right-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.auth-login-page .pill {
  padding: 5px 12px;
  border: 1px solid var(--auth-right-fg);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 500;
  color: var(--auth-right-fg);
  opacity: 0.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .auth-login-page .pill {
  background: rgba(0, 0, 0, 0.04);
}

.auth-login-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-login-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-login-page .alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-md, 4px);
  border: 1px solid transparent;
  opacity: 0;
  animation: authFadeUp 0.5s ease 0.45s forwards;
  margin-bottom: 12px;
}
.auth-login-page .alert-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-login-page .alert-body {
  flex: 1;
  min-width: 0;
}
.auth-login-page .alert-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 3px;
}
.auth-login-page .alert-desc {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
}
.auth-login-page .alert-desc .validation-summary-errors,
.auth-login-page .alert-desc .error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-login-page .alert-desc .validation-summary-errors ul,
.auth-login-page .alert-desc .error-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-login-page .alert-desc .validation-summary-errors li,
.auth-login-page .alert-desc .error-list li {
  margin-top: 2px;
}
.auth-login-page .alert-danger {
  background: var(--red-dim);
  border-color: var(--red-mid);
  color: var(--red);
}
.auth-login-page .alert-warning {
  background: var(--amber-dim);
  border-color: var(--amber-mid);
  color: var(--amber);
}
.auth-login-page .alert-info {
  background: var(--blue-dim);
  border-color: var(--blue-mid);
  color: var(--blue);
}
.auth-login-page .alert-success {
  background: var(--green-dim);
  border-color: var(--green-mid);
  color: var(--green);
}

.auth-login-page .field-error {
  font-size: 11px;
  color: var(--danger-color);
  margin-top: 2px;
}

.auth-login-page .input-wrap .icon i {
  font-size: 14px;
}

@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-login-page {
    overflow-y: auto;
  }

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

  .auth-login-page #panel-left {
    width: 100%;
    min-height: 100vh;
  }
}
