/* =========================================================
   PROPAI AUTH PAGES - BROKER ONLY
========================================================= */

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(53,231,255,0.18), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(124,92,255,0.18), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(38,245,167,0.08), transparent 35%),
    #030507;
  color: var(--text);
}

.auth-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.auth-topbar {
  position: relative;
  z-index: 20;
  padding: 22px 0;
}

.auth-topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  background: rgba(3,5,7,0.54);
  backdrop-filter: blur(18px);
}

.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-page {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 38px;
  align-items: center;
  padding: 48px 0 78px;
}

.auth-panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(53,231,255,0.08), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.105), rgba(255,255,255,0.035));
  box-shadow: 0 34px 110px rgba(0,0,0,0.46);
  backdrop-filter: blur(24px);
  padding: 34px;
}

.auth-panel h1 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.auth-panel > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1rem;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(53,231,255,0.22);
  background: rgba(53,231,255,0.09);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(38,245,167,0.75);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.form-message {
  display: none;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(38,245,167,0.18);
  background: rgba(38,245,167,0.10);
  color: var(--accent);
  font-weight: 750;
  font-size: 0.9rem;
}

.form-message.show {
  display: block;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: rgba(255,255,255,0.92);
  font-size: 0.88rem;
  font-weight: 750;
}

.form-control {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 17px;
  outline: none;
  background: rgba(0,0,0,0.24);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-control::placeholder {
  color: rgba(167,178,195,0.66);
}

.form-control:focus {
  border-color: rgba(53,231,255,0.48);
  background: rgba(0,0,0,0.30);
  box-shadow: 0 0 0 4px rgba(53,231,255,0.08);
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 13px;
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  cursor: pointer;
  transition: 0.25s ease;
}

.password-toggle:hover {
  color: var(--text);
  border-color: rgba(53,231,255,0.38);
  background: rgba(53,231,255,0.09);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.auth-link {
  color: var(--primary);
  font-weight: 800;
  transition: 0.25s ease;
}

.auth-link:hover {
  color: #fff;
}

.auth-submit {
  margin-top: 4px;
}

.auth-switch {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  text-align: center;
}

.auth-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.auth-showcase {
  position: relative;
  min-height: 650px;
}

.auth-image-card {
  position: absolute;
  inset: 46px 0 58px 36px;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 36px 110px rgba(0,0,0,0.46), 0 0 56px rgba(53,231,255,0.09);
  transform: rotateX(6deg) rotateY(-8deg) rotateZ(1deg);
  animation: heroMainFloat 7s ease-in-out infinite;
}

.auth-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(53,231,255,0.22), transparent 28%),
    linear-gradient(180deg, rgba(3,5,7,0.06), rgba(3,5,7,0.88));
}

.auth-image-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  z-index: 2;
}

.auth-image-content span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 13px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(53,231,255,0.24);
  background: rgba(53,231,255,0.14);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.auth-image-content h2 {
  max-width: 540px;
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.12;
}

.auth-image-content p {
  max-width: 530px;
  color: rgba(255,255,255,0.76);
}

.auth-floating-card {
  position: absolute;
  right: 0;
  top: 112px;
  z-index: 4;
  width: 235px;
  padding: 17px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,16,24,0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.34);
  animation: floatCardB 8s ease-in-out infinite;
}

.auth-floating-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.72rem;
}

.auth-floating-card strong {
  display: block;
  line-height: 1.35;
}

.auth-stats-row {
  position: absolute;
  left: 0;
  right: 54px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.auth-stat {
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,16,24,0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
}

.auth-stat strong {
  display: block;
  font-size: 1rem;
}

.auth-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 1040px) {
  .auth-page {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .auth-showcase {
    display: none;
  }
}

@media (max-width: 680px) {
  .auth-topbar-inner {
    align-items: flex-start;
  }

  .auth-top-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .auth-panel {
    padding: 26px 18px;
    border-radius: 28px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }
}



/* =========================================================
   AUTH PAGE REFINEMENTS V12
========================================================= */

.auth-panel {
  padding: 30px;
  max-width: 520px;
}

.auth-panel h1 {
  font-size: clamp(1.55rem, 2.25vw, 2.15rem) !important;
  line-height: 1.16;
  margin-bottom: 10px;
}

.auth-panel > p {
  font-size: 0.875rem !important;
  line-height: 1.6;
  margin-bottom: 22px;
}

.auth-badge {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.68rem;
  margin-bottom: 14px;
}

.auth-form {
  gap: 14px;
}

/* Signup form fields now show one per row */
.form-grid-2 {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

.form-group {
  gap: 7px;
}

.form-group label {
  font-size: 0.78rem !important;
}

.form-control {
  min-height: 48px;
  border-radius: 15px;
  font-size: 0.875rem !important;
  padding: 0 14px;
}

.password-field .form-control {
  padding-right: 50px;
}

.password-toggle {
  width: 36px;
  height: 36px;
  right: 8px;
  border-radius: 12px;
}

.password-toggle svg {
  width: 17px;
  height: 17px;
}

.check-label,
.auth-link,
.auth-switch,
.auth-note,
.auth-options {
  font-size: 0.78rem !important;
}

.auth-switch {
  margin-top: 18px;
  padding: 15px;
}

.btn.auth-submit,
.auth-form .btn-large {
  min-height: 48px;
  font-size: 0.875rem;
}

.google-auth-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.94);
  color: #111827;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.google-auth-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

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

.google-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin: -2px 0 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,0.10);
}

.auth-image-content h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem) !important;
}

.auth-image-content p,
.auth-floating-card strong,
.auth-stat span {
  font-size: 0.82rem;
}

.auth-stat strong {
  font-size: 0.92rem;
}

@media (max-width: 680px) {
  .auth-panel {
    max-width: 100%;
    padding: 24px 16px;
  }

  .auth-panel h1 {
    font-size: 1.45rem !important;
  }

  .auth-panel > p {
    font-size: 0.82rem !important;
  }
}


/* Firebase auth message states */
.form-message {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,107,107,0.28);
  background: rgba(255,107,107,0.08);
  color: #ffb4b4;
  font-size: 0.86rem;
  font-weight: 700;
}

.form-message.show {
  display: block;
}

.auth-submit:disabled,
.google-auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
