/* ==========================================================
   DESIGNTECH - Forms, Auth & Settings Styles
   ========================================================== */

.auth-page-wrapper {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(circle at 50% 30%, rgba(249, 115, 96, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(246, 237, 228, 0.5) 0%, transparent 40%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

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

.auth-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
}

.auth-header p {
  font-size: var(--text-sm);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
  padding: 0 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary-coral);
  font-weight: 600;
}

/* Alert Notification Boxes */
.alert-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.alert-error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-info {
  background-color: var(--light-coral);
  color: var(--deep-coral);
  border: 1px solid rgba(249, 115, 96, 0.25);
}

/* Checkbox and Radios */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: var(--text-sm);
  user-select: none;
}

.custom-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-coral);
  cursor: pointer;
}

/* Settings Form Styles */
.settings-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.settings-section-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.settings-section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-main);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-info h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.settings-info p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-main);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-coral);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Avatar Preview Component */
.avatar-upload-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.avatar-preview-circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-coral), var(--deep-coral));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  overflow: hidden;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
