/* =========================================
   AUTH PAGES - Matching Main Design System
   ========================================= */

.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.auth-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.4s ease;
  pointer-events: none;
}

.auth-container:hover::before {
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

/* =========================================
   BRAND SECTION
   ========================================= */
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(20, 184, 166, 0.15));
  margin: 0 auto 1rem;
  color: var(--primary-400);
}

.brand-icon i {
  width: 32px;
  height: 32px;
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================
   FORM
   ========================================= */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: rgba(12, 10, 9, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: rgba(12, 10, 9, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-disabled);
}

/* Validation states */
.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

.form-input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Hide default validation tooltip */
.form-input:invalid {
  box-shadow: none;
}

/* Custom validation message */
.validation-message {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.25rem;
}

.validation-message i {
  width: 14px;
  height: 14px;
}

.validation-message.hidden {
  display: none;
}

/* =========================================
   ERROR MESSAGE
   ========================================= */
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.9rem;
}

.error-message i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.field-error {
  font-size: 0.85rem;
  color: #fca5a5;
  margin-top: -0.25rem;
}

/* =========================================
   BUTTON
   ========================================= */
.btn-full {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-footer p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-link {
  color: var(--primary-400);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--primary-300);
}

.auth-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.auth-link-secondary i {
  width: 16px;
  height: 16px;
}

.auth-link-secondary:hover {
  color: var(--text-secondary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 480px) {
  .auth-page {
    padding: 1rem;
  }
  
  .auth-container {
    padding: 1.5rem;
  }
  
  .brand-title {
    font-size: 1.5rem;
  }
}