/* Enhanced Frosted-Glass Background Blur */
.modal-backdrop.show {
  opacity: 0.95 !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  background-color: rgba(15, 23, 42, 0.55) !important;
}

/* Compact Modal Frame */
.auth-modal-dialog {
  max-width: 375px;
  margin: 1.5rem auto;
}

.auth-modal-content {
  border: 1.5px solid var(--primary-color) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(11, 123, 193, 0.3) !important;
  background: #ffffff;
}

/* Header Banner */
.auth-modal-header-banner {
  background: linear-gradient(180deg, #0284c7 0%, var(--primary-color) 100%);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem 2.2rem 1rem;
  position: relative;
}

.auth-modal-header-banner .btn-close-custom {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.auth-modal-header-banner .btn-close-custom:hover {
  background: rgba(255, 255, 255, 0.35);
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.auth-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
  letter-spacing: 0.01em;
  margin: 0;
}

/* Curved Body Layer */
.auth-modal-body-curved {
  background: #ffffff;
  margin-top: -18px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 1.35rem 1.4rem 0.9rem 1.4rem;
  position: relative;
  z-index: 2;
}

/* Inputs & Password Toggle Integration */
.auth-input-group {
  background-color: #f1f6fb;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  transition: all 0.2s ease;
  margin-bottom: 0.65rem;
}

.auth-input-group:focus-within {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 123, 193, 0.15);
}

.auth-input-group .input-icon {
  color: #7b8e9f;
  margin-right: 0.55rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.auth-input-group input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  color: var(--text-dark);
  width: 100%;
}

.auth-input-group input::placeholder {
  color: #9cb0c3;
  font-size: 0.82rem;
}

.auth-input-group input,
.auth-input-group input:focus,
.auth-input-group input:focus-visible,
.auth-input-group input:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* Password Eye Icon Button */
.password-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: #8fa0b2;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--primary-color);
}

.password-toggle-btn,
.password-toggle-btn:focus,
.password-toggle-btn:focus-visible,
.password-toggle-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Buttons */
.btn-auth-submit {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.88rem;
  border-radius: 10px;
  padding: 0.6rem;
  border: none;
  transition: all 0.2s ease;
}

.btn-auth-submit:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(11, 123, 193, 0.3);
  color: #ffffff;
}

/* Divider & Google CTA */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.75rem 0;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider:not(:empty)::before {
  margin-right: 0.6em;
}

.auth-divider:not(:empty)::after {
  margin-left: 0.6em;
}

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.48rem;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-google-auth:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.auth-terms-footer {
  border-top: 1px solid #edf2f7;
  padding: 0.65rem 1rem;
  background-color: #ffffff;
  text-align: center;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.3;
}

.auth-terms-footer a {
  color: #d97706;
  text-decoration: none;
  font-weight: 600;
}