/* PlanetCareScan — Auth Modal v2 */
#pcs-auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
}
#pcs-auth-modal.is-open { display: block; }

.pcs-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.pcs-auth-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #0d1f14;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 40px;
  max-height: 90dvh;
  overflow-y: auto;
  border-top: 1px solid #2d5a3d;
}

.pcs-auth-handle {
  width: 36px;
  height: 4px;
  background: #2d5a3d;
  border-radius: 2px;
  margin: 0 auto 18px;
}

.pcs-auth-x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #a0b8a8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s;
}
.pcs-auth-x:hover { background: rgba(255,255,255,.08); }

.pcs-auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.pcs-auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #e8e8e0;
  text-align: center;
  margin: 0 0 6px;
  font-family: 'Noto Serif', serif;
}

.pcs-auth-sub {
  font-size: 13px;
  color: #7a9a8a;
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.5;
}

.pcs-auth-msg {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.pcs-auth-msg--err { background: rgba(220,50,50,.15); color: #ff9a9a; }
.pcs-auth-msg--ok  { background: rgba(50,180,100,.15); color: #80e8a0; }

.pcs-auth-section { margin-bottom: 16px; }

.pcs-auth-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #7a9a8a;
  text-transform: none;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.pcs-auth-row {
  display: flex;
  gap: 8px;
}

.pcs-auth-input {
  flex: 1;
  background: #0f2016;
  border: 1px solid #2d5a3d;
  border-radius: 10px;
  color: #e8e8e0;
  padding: 12px 14px;
  font-size: 15px;
  font-family: Manrope, sans-serif;
  outline: none;
  transition: border-color .15s;
  min-width: 0;
}
.pcs-auth-input:focus { border-color: #2d6a4f; }
.pcs-auth-input::placeholder { color: #3a5a4a; }

.pcs-auth-btn-send {
  background: #2d6a4f;
  color: #0d1f14;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: Manrope, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.pcs-auth-btn-send:disabled { opacity: .6; cursor: default; }

.pcs-auth-hint {
  font-size: 12px;
  color: #5a7a6a;
  margin: 8px 0 0;
  line-height: 1.4;
}

.pcs-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #3a5a4a;
  font-size: 12px;
}
.pcs-auth-divider::before,
.pcs-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1e3a28;
}

.pcs-auth-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0f2016;
  border: 1px solid #2d5a3d;
  border-radius: 10px;
  color: #e8e8e0;
  padding: 12px;
  font-size: 15px;
  font-family: Manrope, sans-serif;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  margin-bottom: 16px;
}
.pcs-auth-google:hover { background: #1a3020; border-color: #4a7a5a; }
.pcs-auth-google:disabled { opacity: .6; cursor: default; }

.pcs-auth-privacy {
  font-size: 11px;
  color: #3a5a4a;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}
.pcs-auth-privacy a { color: #5a8a6a; text-decoration: underline; }

.pcs-auth-apple {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f5f5f5;
  border: none;
  border-radius: 10px;
  color: #0d0d0d;
  padding: 12px;
  font-size: 15px;
  font-family: Manrope, sans-serif;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 10px;
  font-weight: 600;
}
.pcs-auth-apple:hover { background: #e8e8e8; }
.pcs-auth-apple:disabled { opacity: .6; cursor: default; }

/* Apple-Knopf */
.pcs-auth-apple {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
}
.pcs-auth-apple:hover { opacity: .85; }
.pcs-auth-apple:disabled { opacity: .5; cursor: not-allowed; }
