/* ============================================
   AUTH PAGES STYLES
   ============================================ */

:root {
  --bg: #000000;
  --text: #FFFFFF;
  --accent: #F3E4C0;
  --surface: #0a0a0a;
  --border: #1a1a1a;
  --success: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   AUTH PAGE LAYOUT
   ============================================ */

.auth-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #000000 0%, #0D0D0D 25%, #1a1a1a 50%, #0D0D0D 75%, #000000 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  animation: fadeInUp 0.6s ease-out;
}

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

/* ============================================
   LOGO
   ============================================ */

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo a {
  display: inline-block;
  text-decoration: none;
}

.auth-logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(243, 228, 192, 0.25));
  transition: filter 0.3s ease;
}

.auth-logo a:hover .auth-logo-img {
  filter: drop-shadow(0 4px 20px rgba(243, 228, 192, 0.4));
}

@media (max-width: 600px) {
  .auth-logo-img {
    height: 38px;
  }
}

/* ============================================
   CARD
   ============================================ */

.auth-card {
  background: rgba(13, 13, 13, 0.98);
  border: 1px solid rgba(243, 228, 192, 0.15);
  border-radius: 16px;
  padding: 2rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 100%;
  width: auto;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* ============================================
   FORM
   ============================================ */

.auth-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-group {
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label-required {
  color: var(--accent);
}

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

.input-icon {
  position: absolute;
  left: 1.25rem;
  font-size: 1.125rem;
  pointer-events: none;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(243, 228, 192, 0.2);
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(243, 228, 192, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.6);
}

.form-input:valid:not(:placeholder-shown) {
  border-color: rgba(243, 228, 192, 0.4);
}

.input-action {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.125rem;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.input-action:hover {
  color: var(--accent);
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 0.5rem;
  min-height: 1.25rem;
  font-weight: 500;
}

.form-hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.form-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.forgot-link {
  font-size: 0.75rem;
  color: rgba(243, 228, 192, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.forgot-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.form-submit {
  position: relative;
  width: 100%;
  padding: 0.75rem 2rem;
  background: rgba(243, 228, 192, 0.1);
  border: 1px solid #F3E4C0;
  border-radius: 6px;
  color: #F3E4C0;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 180px;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F3E4C0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-submit:hover {
  background: rgba(243, 228, 192, 0.15);
  box-shadow: 0 0 20px rgba(243, 228, 192, 0.2);
}

.form-submit:hover::before {
  opacity: 0.1;
}

.form-submit:active {
  transform: scale(0.98);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form-submit.loading .button-text {
  opacity: 0;
}

.form-submit.loading .button-loader {
  display: block;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-info {
  display: none;
}

.info-icon {
  display: none;
}

/* ============================================
   CARD FOOTER
   ============================================ */

.auth-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 228, 192, 0.1);
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  border-bottom-color: var(--accent);
}

.footer-link-back {
  display: inline-block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-link-back:hover {
  color: var(--accent);
}

/* ============================================
   FEATURES
   ============================================ */

.auth-features {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .auth-form {
    grid-template-columns: 1fr;
  }
  
  .form-submit {
    margin-top: 0.5rem;
  }
}

@media (max-width: 600px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-title {
    font-size: 1.25rem;
  }
  
  .auth-subtitle {
    font-size: 0.8125rem;
  }
  
  .form-input {
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    font-size: 0.875rem;
  }
  
  .form-submit {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
  }
  
  .input-icon {
    font-size: 1rem;
    left: 0.875rem;
  }
}

/* ============================================
   NOTIFICATION
   ============================================ */

.auth-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  z-index: 10001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-notification-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
}

.auth-notification-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
}

.notification-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

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

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

/* ============================================
   OFFER ACCEPT CHECKBOX
   ============================================ */

.offer-accept {
  position: relative;
}

.offer-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.offer-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.offer-checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(243, 228, 192, 0.3);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  position: relative;
  margin-top: 1px;
}

.offer-checkbox-label input[type="checkbox"]:checked + .offer-checkbox-custom {
  background: rgba(243, 228, 192, 0.15);
  border-color: #F3E4C0;
}

.offer-checkbox-label input[type="checkbox"]:checked + .offer-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #F3E4C0;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.offer-checkbox-label:hover .offer-checkbox-custom {
  border-color: rgba(243, 228, 192, 0.5);
}

.offer-checkbox-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.offer-link {
  color: #F3E4C0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(243, 228, 192, 0.3);
  transition: all 0.2s ease;
}

.offer-link:hover {
  border-bottom-color: #F3E4C0;
  color: #fff;
}

/* ============================================
   FORM FIELD ERROR MESSAGE
   ============================================ */

.form-field-error {
  display: block;
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  font-weight: 500;
  animation: shakeError 0.4s ease-in-out;
}@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}