/* ========================================
   Auth Pages Styles
   ======================================== */

/* Auth Page (Login/Signup) */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  max-height: 56px;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.auth-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Form Styles */
.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s;
  box-sizing: border-box;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: #94a3b8;
}

.form-error {
  display: none;
  background: #fef2f2;
  color: #dc2626;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
}

.auth-form button[type="submit"] {
  width: 100%;
  padding: 16px;
  background: var(--primary-color, #3b82f6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-form button[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Checkbox styling */
.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0 0;
  accent-color: var(--primary-color, #3b82f6);
  cursor: pointer;
}

.checkbox-text {
  flex: 1;
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.auth-links p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.auth-links a {
  color: var(--primary-color, #3b82f6);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* ========================================
   Profile Page Styles
   ======================================== */

.profile-page-main {
  min-height: 60vh;
  background: #f8fafc;
  padding: 40px 20px;
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.profile-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.btn-logout {
  padding: 10px 20px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #fecaca;
}

.profile-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: white;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-nav-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-nav-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.profile-nav-btn.active {
  background: var(--primary-color, #3b82f6);
  color: white;
}

.profile-section {
  display: none;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-section.active {
  display: block;
}

.profile-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

/* Profile Info */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-info-item {
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.profile-info-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.profile-info-value {
  font-size: 16px;
  color: #0f172a;
  font-weight: 500;
}

.profile-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#profile-edit-form {
  display: none;
}

#profile-edit-form .form-group {
  margin-bottom: 20px;
}

#profile-edit-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}

#profile-edit-form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  box-sizing: border-box;
}

#profile-edit-form input:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  background: white;
}

/* Orders & Returns */
.orders-list, .returns-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card, .return-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
}

.order-card:hover, .return-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.order-header, .return-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.order-number {
  font-weight: 600;
  color: #0f172a;
  font-size: 16px;
}

.order-status, .return-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.status-delivered, .status-approved, .status-completed {
  background: #dcfce7;
  color: #16a34a;
}

.status-cancelled, .status-rejected {
  background: #fee2e2;
  color: #dc2626;
}

.order-date, .return-date {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-item-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.order-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-name {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}

.order-item-qty {
  font-size: 13px;
  color: #64748b;
}

.order-item-price {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.return-btn {
  padding: 8px 14px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.return-btn:hover {
  background: #fecaca;
}

.order-total {
  text-align: right;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* Return Info */
.return-product {
  font-weight: 600;
  color: #0f172a;
}

.return-reason, .return-description {
  font-size: 14px;
  color: #475569;
  margin-top: 8px;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
}

.loading {
  text-align: center;
  padding: 32px;
  color: #64748b;
}

.error {
  text-align: center;
  padding: 24px;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 10px;
}

/* Buttons */
.btn-primary {
  padding: 14px 24px;
  background: var(--primary-color, #3b82f6);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  padding: 14px 24px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.return-product-name {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions button {
  flex: 1;
}

/* Mobile */
@media (max-width: 640px) {
  .auth-card {
    padding: 28px 24px;
  }
  
  .profile-container {
    padding: 0;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-nav {
    flex-wrap: wrap;
  }
  
  .profile-nav-btn {
    min-width: 100px;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .order-item {
    flex-wrap: wrap;
  }
  
  .return-btn {
    width: 100%;
    margin-top: 8px;
  }
}
