/**
 * DIGITAL BULL - MODERN TRENDING CLIENT SIGNUP PAGE STYLES
 * Version: 5.0 (Trending SaaS Card Design)
 */

/* --------------------------------------------------------------------------
   1. MAIN SIGNUP SECTION
   -------------------------------------------------------------------------- */
.db-signup-section {
  padding: 5rem 1rem 6rem;
  background-color: #f6f9fd;
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(0, 39, 91, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(234, 38, 42, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
  min-height: calc(100vh - 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
}

.db-signup-container {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.db-signup-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* --------------------------------------------------------------------------
   2. MODERN TRENDING CLIENT SIGNUP FORM CARD
   -------------------------------------------------------------------------- */
.db-signup-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.75rem 2.5rem 2.85rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 
    0 1px 3px rgba(0, 39, 91, 0.03),
    0 16px 40px -6px rgba(0, 39, 91, 0.08),
    0 32px 64px -12px rgba(0, 39, 91, 0.06);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.db-signup-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 2px 6px rgba(0, 39, 91, 0.04),
    0 24px 50px -6px rgba(0, 39, 91, 0.13),
    0 40px 80px -12px rgba(0, 39, 91, 0.1);
  border-color: rgba(203, 213, 225, 0.95);
}

/* Modern Top Accent Stripe (Brand Dual Gradient) */
.db-signup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #00275b 0%, #0056d6 50%, #ea262a 100%);
  z-index: 3;
}

/* Ambient Diffused Corner Glow (Soft & Modern) */
.db-signup-corner-accent {
  position: absolute;
  top: -35px;
  right: -35px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(234, 38, 42, 0.55) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   3. CARD HEADER (AVATAR ICON + BADGE + TITLE + SUBTITLE)
   -------------------------------------------------------------------------- */
.db-signup-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.85rem;
  position: relative;
  z-index: 2;
}

.db-signup-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00275b 0%, #004dc7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(0, 39, 91, 0.28);
  margin-top: 2px;
  transition: transform 0.3s ease;
}

.db-signup-card:hover .db-signup-header-icon {
  transform: scale(1.05);
}

.db-signup-header-text {
  flex: 1;
}

/* Sleek Pill Capsule Badge */
.db-signup-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(234, 38, 42, 0.08);
  color: #ea262a;
  border: 1px solid rgba(234, 38, 42, 0.18);
  margin-bottom: 0.5rem;
}

.db-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ea262a;
  box-shadow: 0 0 6px rgba(234, 38, 42, 0.6);
  display: inline-block;
  flex-shrink: 0;
}

.db-signup-card-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #00275b;
  line-height: 1.2;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.db-signup-card-title span {
  color: #ea262a;
}

.db-signup-card-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. FORM & TRENDING INPUT FIELDS
   -------------------------------------------------------------------------- */
.db-signup-form {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.db-signup-input-group {
  position: relative;
  margin-bottom: 1.05rem;
  width: 100%;
}

.db-signup-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.db-signup-input-icon svg {
  width: 18px;
  height: 18px;
}

.db-signup-input-group:focus-within .db-signup-input-icon {
  color: #ea262a;
  transform: translateY(-50%) scale(1.08);
}

.db-signup-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.db-signup-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.db-signup-input:hover {
  border-color: #cbd5e1;
  background-color: #ffffff;
}

.db-signup-input:focus {
  border-color: #ea262a;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(234, 38, 42, 0.12);
}

.db-signup-input.db-has-toggle {
  padding-right: 48px;
}

.db-signup-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 3;
}

.db-signup-toggle-password:hover {
  color: #00275b;
  background-color: rgba(0, 39, 91, 0.06);
}

.db-signup-toggle-password svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   5. REGISTER SUBMIT BUTTON WITH ARROW
   -------------------------------------------------------------------------- */
.db-btn-register-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff3b3f 0%, #ea262a 100%);
  box-shadow: 0 10px 24px -4px rgba(234, 38, 42, 0.42);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1.25rem;
  letter-spacing: 0.01em;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.db-btn-register-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(234, 38, 42, 0.52);
}

.db-btn-register-submit:active {
  transform: translateY(0);
}

.db-btn-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.25s ease;
}

.db-btn-register-submit:hover .db-btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. FOOTER LINK
   -------------------------------------------------------------------------- */
.db-signup-footer-link {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.db-link-trending {
  color: #00275b;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.db-link-trending:hover {
  color: #ea262a;
}

.db-link-arrow {
  transition: transform 0.2s ease;
}

.db-link-trending:hover .db-link-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE DESIGN (MOBILE ADAPTATION)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .db-signup-section {
    padding: 2.25rem 0.85rem 3.5rem;
  }

  .db-signup-container {
    padding: 0 0.35rem;
  }

  .db-signup-card {
    padding: 2rem 1.25rem 2.25rem;
    border-radius: 20px;
    max-width: 100%;
  }

  .db-signup-card::before {
    border-radius: 20px 20px 0 0;
  }

  .db-signup-card-header {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .db-signup-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .db-signup-header-icon svg {
    width: 20px;
    height: 20px;
  }

  .db-signup-badge {
    font-size: 0.68rem;
    padding: 3px 9px;
  }

  .db-signup-card-title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }

  .db-signup-card-subtitle {
    font-size: 0.84rem;
  }

  .db-signup-input-group {
    margin-bottom: 0.95rem;
  }

  .db-signup-input {
    height: 46px;
    padding: 0 14px 0 42px;
    font-size: 0.9rem;
    border-radius: 11px;
  }

  .db-signup-input-icon {
    left: 14px;
  }

  .db-signup-input-icon svg {
    width: 16px;
    height: 16px;
  }

  .db-btn-register-submit {
    height: 46px;
    font-size: 0.92rem;
    margin-top: 1.15rem;
    border-radius: 11px;
  }

  .db-signup-footer-link {
    font-size: 0.82rem;
    margin-top: 1.15rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
}

@media (max-width: 360px) {
  .db-signup-card {
    padding: 1.75rem 1rem 1.85rem;
    border-radius: 18px;
  }

  .db-signup-card::before {
    border-radius: 18px 18px 0 0;
  }

  .db-signup-card-title {
    font-size: 1.45rem;
  }

  .db-signup-input {
    height: 44px;
    padding: 0 12px 0 38px;
    font-size: 0.86rem;
  }

  .db-signup-input-icon {
    left: 12px;
  }

  .db-signup-input-icon svg {
    width: 15px;
    height: 15px;
  }

  .db-btn-register-submit {
    height: 44px;
    font-size: 0.88rem;
  }
}
