/* Auth pages (login + register) — port from Figma + legacy reference.
   Single stylesheet because both pages share 95% of the rules. */

:root {
  --auth-primary-red: #88050a;
  --auth-dark-red: #440b0d;
  --auth-white: #ffffff;
  --auth-text-light: rgba(255, 255, 255, 0.8);
  --auth-button-bg: #050505;
  --auth-error: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--auth-primary-red);
  color: var(--auth-white);
  min-height: 100vh;
}

/* =============================================================================
   Page shell — full-bleed gradient with the cat as a background illustration.
   ============================================================================= */

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--auth-primary-red) 0%, var(--auth-dark-red) 100%);
  overflow: hidden;
  position: relative;
}

.auth-cat {
  position: absolute;
  bottom: -220px;
  left: -30px;
  width: 1500px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* =============================================================================
   Header / footer — absolute positioned overlays
   ============================================================================= */

.auth-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 40px;
  width: 100%;
  z-index: 1;
}

.auth-header-link {
  font-size: 18px;
  font-weight: bold;
  color: var(--auth-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-header-link:hover { opacity: 0.8; }

.auth-footer {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 1;
}

.auth-support-link {
  font-size: 18px;
  color: var(--auth-white);
  text-decoration: none;
  margin: 0;
  transition: opacity 0.2s ease;
}

.auth-support-link:hover { opacity: 0.8; }

/* =============================================================================
   Centered container — title + form
   ============================================================================= */

.auth-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.auth-title {
  font-size: 48px;
  font-weight: normal;
  text-align: center;
  margin: 0;
  color: var(--auth-white);
  font-family: 'Times New Roman', Times, serif;
  letter-spacing: 2px;
  transform: scaleY(1.4);
  transform-origin: center;
}

.auth-form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-field {
  position: relative;
  width: 100%;
}

.auth-field label {
  display: block;
  font-size: 20px;
  color: var(--auth-text-light);
  margin-bottom: 12px;
  font-weight: normal;
}

.auth-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--auth-white);
  padding: 12px 0;
  font-size: 16px;
  color: var(--auth-white);
  outline: none;
  font-family: Arial, sans-serif;
  transition: border-color 0.2s ease;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================================================
   Password field — input + eye toggle
   ============================================================================= */

.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrapper input {
  padding-right: 36px;
}

.auth-password-toggle {
  position: absolute;
  right: 0;
  bottom: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--auth-white);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.auth-password-toggle:hover { opacity: 1; }

.auth-eye-icon { display: block; }

/* =============================================================================
   Errors
   ============================================================================= */

.auth-field-error {
  color: var(--auth-error);
  font-size: 14px;
  margin: 6px 0 0;
}

.auth-error-banner {
  width: 100%;
  max-width: 560px;
  color: var(--auth-error);
  font-size: 16px;
  text-align: center;
  margin: 0;
}

/* =============================================================================
   Submit button
   ============================================================================= */

.auth-submit {
  width: 100%;
  height: 72px;
  background-color: var(--auth-button-bg);
  color: var(--auth-white);
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 16px;
}

.auth-submit:hover { background-color: #1a1a1a; }

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 768px) {
  .auth-page { padding: 100px 20px 60px; }
  .auth-header { padding: 16px 20px; }
  .auth-header-link { font-size: 16px; }
  .auth-title { font-size: 36px; }
  .auth-container { gap: 24px; }
  .auth-form { max-width: 100%; gap: 18px; }
  .auth-field label { font-size: 18px; }
  .auth-submit { height: 60px; font-size: 18px; }
  .auth-footer { bottom: 20px; right: 20px; }
  .auth-support-link { font-size: 14px; }
  .auth-cat { width: 900px; bottom: -140px; left: -40px; }
}

@media (max-width: 480px) {
  .auth-header { padding: 12px 16px; }
  .auth-header-link { font-size: 14px; }
  .auth-title { font-size: 28px; letter-spacing: 1px; }
  .auth-form { gap: 14px; }
  .auth-field label { font-size: 16px; }
  .auth-submit { height: 50px; font-size: 16px; }
  .auth-cat { width: 600px; bottom: -80px; }
}
