.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: #fff0f6;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  overflow: hidden;
  min-height: 450px;
}

/* Flip trigger */
.flipped {
  transform: rotateY(180deg);
}

/* Form faces (no longer absolutely positioned) */
.card-face {
  width: 100%;
  backface-visibility: hidden;
}

.front-face {
  display: block;
}

.back-face {
  display: none;
}

.face {
  backface-visibility: hidden;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 1rem;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* Buttons */
button {
  padding: 0.6rem 1.2rem;
  margin: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
}

.confirm {
      margin:0;
  background-color: #ffb3c1;
  color: white;
}

.cancel {
      margin:0;
  background-color: #ffc9de;
}

.checkbox {
  margin: 1rem auto 0;
}

.flip-toggle {
  display: block;
  margin: 2rem auto 0;
  background-color: #b5ead7;
}

.login-inner {
  transform: scaleX(-1);
  direction: ltr;
}

.auth-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.auth-buttons button {
  margin-left: 0.5rem;
  border-radius: 1rem;
  background-color: #ffb3c1;
  color: #fff;
}

.buttons-inline {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.warning {
  color: red;
  text-align: center;
  margin-top: 1rem;
}

.success {
  color: green;
  text-align: center;
  margin-top: 1rem;
}

.blur {
  filter: blur(1.5rem);
  transition: filter 1s ease;
}

.checkbox-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkbox-row .checkbox {
  margin: 0;
}
