/* ==========================================================================
   Assam Crafts Marketplace - Customer User Mobile & Web Auth Styles
   Design System: Matching Dashboard Aesthetic
   - Canvas: #f4f5f1
   - Brand Accent: #cde4b8 / #bdd89f (sage)
   - Primary: #192b23 / #244536 (forest)
   - Paper: #ffffff
   - Typography: Inter (clean, geometric, modern)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
  --ink: #202b27;
  --ink-secondary: #4a5c52;
  --ink-muted: #748078;
  --line: #e9ece7;
  --line-strong: #dcdfd8;
  --paper: #ffffff;
  --canvas: #f4f5f1;
  --forest: #244536;
  --forest-dark: #192b23;
  --forest-deep: #13221c;
  --forest-hover: #263c30;
  --accent: #cde4b8;
  --accent-light: #eff3eb;
  --accent-dark: #263c2e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--canvas);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(205, 228, 184, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(36, 69, 54, 0.08) 0%, transparent 45%);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  -webkit-font-smoothing: antialiased;
}

.user-auth-wrapper {
  width: 100%;
  max-width: 460px;
  margin: auto;
}

/* Auth Card */
.user-auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 42px 36px;
  box-shadow: 
    0 20px 45px -15px rgba(25, 43, 35, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Header */
.user-auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
}

.emblem-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(25, 43, 35, 0.12);
  transition: transform 0.2s ease;
}

.brand-emblem:hover .emblem-icon {
  transform: scale(1.05);
}

.brand-emblem .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(25, 43, 35, 0.14);
  transition: transform 0.2s ease;
}

.brand-emblem:hover .brand-logo {
  transform: scale(1.05);
}

.emblem-text {
  font-size: 23px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.emblem-text span {
  color: var(--forest);
  font-weight: 600;
  margin-left: 2px;
}

.auth-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid #dce5d7;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: var(--forest);
  text-transform: uppercase;
}

.auth-title {
  font-size: 25px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.auth-sub strong {
  color: var(--ink);
}

/* Alert Notification */
.user-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

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

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

/* Forms */
.user-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}

.form-label span {
  color: var(--ink-muted);
  font-weight: 400;
}

/* Input Fields */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.18s ease;
}

.country-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-right: 1px solid var(--line);
  background: var(--accent-light);
  height: 48px;
}

.phone-input {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
  outline: none;
  letter-spacing: 0.5px;
}

.phone-input::placeholder {
  color: #a4b0a7;
  font-weight: 400;
}

.phone-input-wrap:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 69, 54, 0.12);
  background: #ffffff;
}

.text-input,
.select-input {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: all 0.18s ease;
}

.text-input:focus,
.select-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 69, 54, 0.12);
  background: #ffffff;
}

/* OTP Specific Input */
.otp-box-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
}

.otp-big-input {
  width: 100%;
  max-width: 260px;
  height: 56px;
  text-align: center;
  letter-spacing: 12px;
  font-size: 26px;
  font-weight: 750;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--forest-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.18s ease;
}

.otp-big-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 69, 54, 0.15);
}

/* Profile Photo Upload Widget */
.photo-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.avatar-preview-box {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px dashed var(--line-strong);
  background: var(--accent-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.avatar-preview-box:hover {
  border-color: var(--forest);
  transform: scale(1.02);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--forest);
  font-size: 24px;
}

.camera-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--forest-dark);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  border: 2px solid #ffffff;
}

.file-input-hidden {
  display: none;
}

.photo-hint {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Buttons matching Dashboard (.btn-dark) */
.btn-auth-primary {
  height: 48px;
  width: 100%;
  background: var(--forest-dark);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(25, 43, 35, 0.16);
  margin-top: 6px;
}

.btn-auth-primary:hover {
  background: var(--forest);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 43, 35, 0.22);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

.btn-auth-secondary {
  background: transparent;
  border: none;
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s ease;
}

.btn-auth-secondary:hover {
  color: var(--forest-dark);
  text-decoration: underline;
}

/* Secondary Actions */
.otp-helpers-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 13px;
}

.auth-footer-prompt {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-footer-prompt a {
  color: var(--forest);
  font-weight: 650;
  text-decoration: none;
}

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

.seller-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid #dce5d7;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--forest) !important;
  font-size: 12px;
  margin-top: 4px;
}

.seller-switch-link:hover {
  background: #e4eedf;
}
