/* ==========================================================================
   MaintainIQ - Auth Pages Styles
   ========================================================================== */

.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
}

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

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.auth-logo svg {
  color: var(--accent-emerald);
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 0.5rem;
}

.auth-header p {
  font-size: 0.9375rem;
  color: var(--text-gray-400);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-300);
  margin-bottom: 0.5rem;
}

.auth-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.auth-form .form-input:focus {
  border-color: var(--accent-emerald);
}

.auth-form .form-input::placeholder {
  color: var(--text-gray-500);
}

.auth-submit {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-gray-400);
}

.auth-footer-text a {
  color: var(--accent-emerald);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

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

@media (max-width: 640px) {
  .auth-layout {
    padding: 1.5rem 1rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-layout {
    padding: 2rem 0.75rem;
    align-items: center;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .auth-header {
    margin-bottom: 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.25rem;
  }

  .auth-header p {
    font-size: 0.8125rem;
  }

  .auth-form {
    gap: 0.875rem;
  }

  .auth-form .form-input {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }

  .auth-submit {
    padding: 0.875rem;
    font-size: 0.9375rem;
  }

  .auth-logo {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .auth-footer-text {
    font-size: 0.8125rem;
    margin-top: 1.25rem;
  }

  .auth-theme-toggle {
    top: 1rem;
    right: 1rem;
  }
}

/* ── Form Messages (error / success) ─────────────────────────────────── */

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.form-message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.form-message-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}
