.auth-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.auth-subtitle {
  color: #666;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.field-error {
  display: block;
  color: #d32f2f;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.auth-error,
.auth-success {
  display: none;
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.auth-error.visible {
  display: block;
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6cb;
}

.auth-success.visible {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: #4a90e2;
  color: #fff;
}

.btn-primary:hover {
  background: #357abd;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

.auth-link a {
  color: #4a90e2;
  text-decoration: none;
}

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

/* Utility */
.hidden {
  display: none;
}

/* Header right area: auth + cart */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Header auth area */
.auth-header-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.auth-user-label {
  color: #333;
  font-weight: 500;
}

.auth-link-btn {
  display: inline-block;
  background: none;
  border: 1px solid #4a90e2;
  color: #4a90e2;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s;
}

.auth-link-btn:hover {
  background: #4a90e2;
  color: #fff;
}

/* Change password section in admin */
.change-password-section {
  margin-top: 2rem;
}

.change-password-section .auth-error,
.change-password-section .auth-success {
  margin-top: 0.5rem;
}

.no-images-text {
  color: #666;
  font-size: 0.9rem;
}
