/* =====================================================
   STUDIO DARPAN PWA — css/auth.css  v5 FINAL
   ===================================================== */

#screen-auth {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0a0a !important;
  -webkit-overflow-scrolling: touch;
}

.auth-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: #0a0a0a;
}
.auth-bg-c1 {
  position: absolute; width: 340px; height: 340px;
  top: -80px; right: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(223,27,27,.28) 0%, transparent 68%);
}
.auth-bg-c2 {
  position: absolute; width: 260px; height: 260px;
  bottom: 40px; left: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(223,27,27,.14) 0%, transparent 68%);
}

.auth-wrap {
  position: relative; z-index: 1;
  min-height: 100%;
  display: block;
  background: transparent;
}

.auth-hero {
  padding: 28px 24px 20px;
  padding-top: calc(28px + env(safe-area-inset-top));
  background: transparent;
}

.auth-brand {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.auth-brand-icon {
  width: 64px; height: 64px;
  background: transparent !important;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  box-shadow: none !important;
}
.auth-brand-icon i { color: #DF1B1B; font-size: 28px; }
.auth-brand-name { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; font-weight: 700; }
.auth-brand-sub { font-size: 11px; color: rgba(255,255,255,.38); margin-top: 3px; }

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 700; color: #fff;
  line-height: 1.15; margin-bottom: 10px;
}
.auth-title span { color: #DF1B1B; }
.auth-subtitle { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.7; }

/* Card */
.auth-card {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 28px 28px 0 0;
  padding: 28px 20px;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

/* Tabs */
.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 14px; padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 13px 0; text-align: center;
  border-radius: 11px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  color: rgba(255,255,255,.4);
  border: none; background: transparent;
  font-family: 'Poppins', sans-serif;
}
.auth-tab.active {
  background: #DF1B1B; color: #fff;
  box-shadow: 0 4px 14px rgba(223,27,27,.45);
  font-weight: 700;
}

/* Input group — NO floating label, simple placeholder */
.inp-group { margin-bottom: 14px; }
.inp-field {
  width: 100%; height: 56px;
  padding: 0 50px 0 16px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 14px; color: #fff;
  font-family: 'Poppins', sans-serif; font-size: 15px;
  outline: none; transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
  caret-color: #DF1B1B;
}
.inp-field::placeholder {
  color: rgba(255,255,255,.38);
  font-size: 14px;
}
.inp-field:focus {
  border-color: #DF1B1B;
  background: rgba(223,27,27,.06);
}
.inp-wrap { position: relative; }
.inp-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.28); font-size: 18px;
  pointer-events: none;
}
.inp-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.35);
  font-size: 18px; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}

/* Buttons */
.auth-btn {
  width: 100%; height: 56px; border: none; border-radius: 14px;
  background: #DF1B1B; color: #fff;
  font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 6px 20px rgba(223,27,27,.42);
  margin-top: 8px; letter-spacing: .3px;
  -webkit-appearance: none;
}
.auth-btn:active { transform: scale(.97); box-shadow: none; }
.auth-btn:disabled { opacity: .55; }

.auth-btn-ghost {
  width: 100%; height: 52px;
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 14px; background: transparent;
  color: rgba(255,255,255,.68);
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s; margin-top: 12px;
  -webkit-appearance: none;
}
.auth-btn-ghost:active { background: rgba(255,255,255,.07); }

.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1);
}
.auth-divider span { font-size: 12px; color: rgba(255,255,255,.25); }

.auth-switch-row {
  margin-top: 20px; padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border-radius: 12px; border: 1px solid rgba(255,255,255,.09);
  text-align: center;
  font-size: 14px; color: rgba(255,255,255,.65);
}
.auth-switch-row span {
  color: #ff6b6b; font-weight: 700; cursor: pointer;
  text-decoration: underline;
}

.auth-forgot-link {
  text-align: right; margin: 4px 0 16px;
  font-size: 13px; color: #ff6b6b;
  cursor: pointer; font-weight: 600;
}

/* OTP */
.otp-wrap { text-align: center; padding: 8px 0 4px; }
.otp-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.otp-desc { font-size: 13px; color: rgba(255,255,255,.42); margin-bottom: 28px; line-height: 1.65; }
.otp-number { color: #DF1B1B; font-weight: 700; }
.otp-boxes { display: flex; gap: 12px; justify-content: center; margin-bottom: 22px; }
.otp-boxes input {
  width: 64px; height: 64px; text-align: center;
  font-size: 28px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.14); border-radius: 16px;
  font-family: 'Poppins', sans-serif; color: #fff;
  background: rgba(255,255,255,.08); outline: none; transition: .2s;
  -webkit-appearance: none;
}
.otp-boxes input:focus {
  border-color: #DF1B1B; background: rgba(223,27,27,.1);
}
.otp-resend { font-size: 13px; color: rgba(255,255,255,.32); margin-bottom: 22px; }
.resend-link { color: #DF1B1B; font-weight: 700; cursor: pointer; }

/* Creds */
.cred-box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 20px; margin-bottom: 20px;
}
.cred-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.cred-row:last-child { border-bottom: none; }
.cred-label { font-size: 11px; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .6px; }
.cred-value { font-size: 18px; font-weight: 700; color: #fff; }

.forgot-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.forgot-sub { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.65; margin-bottom: 22px; }

/* Desktop hero bullets — hidden on mobile */
.auth-hero-bullets {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.auth-hero-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.auth-hero-bullet i { font-size: 18px; flex-shrink: 0; }

@media (min-width: 900px) {
  .auth-hero-bullets { display: flex; }

  /* Auth screen override for desktop */
  #sc-auth {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0505 40%, #0d0d1f 100%) !important;
    overflow-y: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .auth-bg { position: fixed !important; }

  .auth-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    max-width: 960px !important;
    width: 100% !important;
    margin: auto !important;
    min-height: 100vh !important;
    align-items: center !important;
    padding: 48px 32px !important;
    gap: 0 !important;
  }

  .auth-hero {
    padding: 0 48px 0 0 !important;
    border-right: 1px solid rgba(255,255,255,0.08) !important;
    padding-top: 0 !important;
  }

  .auth-title {
    font-size: 52px !important;
    line-height: 1.1 !important;
  }

  .auth-subtitle {
    font-size: 15px !important;
    max-width: 340px !important;
    margin-top: 14px !important;
  }

  .auth-card {
    margin: 0 0 0 48px !important;
    border-radius: 24px !important;
    border-top: none !important;
    padding: 36px 32px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6) !important;
    background: #0f0f0f !important;
  }
}
