/* ==========================================================================
   PETALS COUTURES — CUSTOMER AUTHENTICATION & DASHBOARD STYLING
   ========================================================================== */

/* Auth Container & Background */
.auth-page-wrapper {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 60px;
  background: radial-gradient(circle at 10% 20%, rgba(22, 101, 52, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(234, 88, 12, 0.05) 0%, transparent 40%),
              var(--bg-page, #f9fbf9);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-light, #e5ece7);
  box-shadow: 0 20px 40px -15px rgba(22, 45, 30, 0.1), 0 0 0 1px rgba(0,0,0,0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}

.auth-card-header {
  text-align: center;
  padding: 36px 32px 24px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.auth-logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 14px;
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.auth-card-header h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 26px;
  color: var(--text-main, #19241e);
  margin-bottom: 6px;
}

.auth-card-header p {
  color: var(--text-muted, #5f7467);
  font-size: 14px;
}

/* Auth Navigation Tabs (Sign In / Register) */
.auth-tab-switch {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  margin: 0 32px;
  border-radius: 12px;
  margin-top: -16px;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary, #15803d);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.auth-body {
  padding: 28px 32px 36px;
}

/* Method Selector (Email vs Mobile OTP) */
.login-method-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.method-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.method-pill.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

/* Social Google Login Button */
.social-login-block {
  margin-bottom: 22px;
}

.btn-google {
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #1e293b;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.google-icon {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 12px;
}

/* Form Controls */
.auth-form-group {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}

.auth-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-control:focus {
  border-color: var(--primary, #15803d);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.auth-control.no-icon {
  padding-left: 14px;
}

.auth-toggle-pwd {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
}

.auth-help-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.auth-link {
  color: var(--primary, #15803d);
  text-decoration: none;
  font-weight: 600;
}

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

.btn-auth-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary, #15803d);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-auth-primary:hover {
  background: var(--primary-hover, #166534);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.35);
}

.btn-auth-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Alert Boxes */
.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.auth-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.auth-alert.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* OTP Specific UI */
.otp-inputs-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 20px;
}

.otp-box {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
}

.otp-box:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   CUSTOMER DASHBOARD STYLING
   ========================================================================== */

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 30px 0 60px;
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Sidebar */
.dash-sidebar {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-light, #e5ece7);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.dash-user-card {
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.dash-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.dash-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  border: 3px solid #ffffff;
  object-fit: cover;
}

.dash-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #ffffff;
}

.dash-user-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main, #19241e);
  margin-bottom: 4px;
}

.dash-user-meta {
  font-size: 13px;
  color: var(--text-muted, #5f7467);
  word-break: break-all;
}

.dash-nav {
  padding: 12px;
  list-style: none;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.dash-nav-item:hover {
  background: #f8fafc;
  color: var(--primary, #15803d);
}

.dash-nav-item.active {
  background: #ecfdf5;
  color: var(--primary, #15803d);
  font-weight: 700;
}

.dash-nav-item.logout {
  color: #dc2626;
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.dash-nav-item.logout:hover {
  background: #fef2f2;
}

/* Dashboard Content Panels */
.dash-content-panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-light, #e5ece7);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: none;
}

.dash-content-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main, #19241e);
  margin-bottom: 6px;
  font-family: var(--font-serif, serif);
}

.panel-subtitle {
  font-size: 13px;
  color: var(--text-muted, #5f7467);
  margin-bottom: 24px;
}

/* Address Cards Grid */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.address-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  position: relative;
  background: #ffffff;
  transition: all 0.2s ease;
}

.address-card.default {
  border-color: #10b981;
  background: #f0fdf4;
}

.address-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #475569;
  margin-bottom: 10px;
}

.address-card.default .address-label {
  background: #10b981;
  color: #ffffff;
}

.address-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

/* Order History Cards */
.order-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.order-badge-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-processing { background: #e0e7ff; color: #3730a3; }
.status-shipped { background: #f3e8ff; color: #6b21a8; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.order-items-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
