* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Zen Maru Gothic", sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 20px;
  position: relative;
}
/* Honeypot field styling */
.hp-container {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
#formLoadTime {
  display: none;
}
.container {
  display: flex;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 15px rgba(0, 0, 255, 0.2);
  width: 100%;
  max-width: 1320px;
}
@media (min-width: 600px) {
  .container {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
b {
  color: navy !important;
}
.container img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 0px;
}
.left-side {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 16px 0 0 16px;
}
.left-side img {
  width: 60%;
  max-width: 400px;
  height: auto;
  margin-bottom: 0px;
  border: none;
  outline: none;
  box-shadow: none;
}
.right-side {
  flex: 1;
  padding: 0px 40px;
}
.header {
  text-align: center;
  margin-bottom: 32px;
}
.header h1 {
  color: #2563eb;
  font-size: 28px;
  margin-bottom: 8px;
}
.header p {
  color: #64748b;
  font-size: 16px;
}
.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.form-row .form-group {
  width: 48%;
  padding-right: 25px;
  color: navy;
}
label {
  display: block;
  color: navy;
  margin-bottom: 8px;
  font-weight: 500;
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  padding-right: 45px;
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748b;
  font-size: 20px;
  user-select: none;
  transition: color 0.2s;
}
.toggle-password:hover {
  color: #2563eb;
}
input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
button {
  width: 100%;
  padding: 12px;
  background-color: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(to bottom, #4da3ff, #007bff);
  border: 1px solid #006fe6;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}
button:hover {
  background: linear-gradient(to bottom, #3399ff, #0056b3);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}
.login-link:hover {
  text-decoration: underline;
}
.message {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid #ff0000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-color: #fef2f2;
  text-align: center;
  display: none;
}
.message::before {
  content: "⚠️";
  font-size: 16px;
  line-height: 1;
}

.bunsho {
  color: black;
  font-size: 12px;
}
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  .container {
    flex-direction: column;
    box-shadow: none;
    max-width: 100%;
  }
  .left-side {
    border-radius: 0;
    padding: 20px;
  }
  .form-row {
    flex-direction: column;
    margin: 0;
    width: 100%;
  }
  .form-row .form-group {
    width: 100%;
    margin-bottom: 15px;
    padding-right: 0px;
  }
  .header {
    margin-bottom: 0px;
  }
  .header h1 {
    font-size: 24px;
  }
  .header p {
    font-size: 14px;
  }
  label {
    font-size: 16px;
    font-weight: 800;
    color: navy;
  }
  input,
  button {
    font-size: 14px;
  }
  .message {
    margin: 0 auto 20px auto;
    max-width: 100%;
  }
  .success-message {
    font-size: 14px;
    padding: 8px;
    word-wrap: break-word;
  }
}

.right-side #registrationForm b {
  color: navy !important;
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.field-error {
  display: none;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: black;
  background-color: #fef2f2;
  border-left: 4px solid #ff0000;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease-in-out;
}
.field-error::before {
  content: "⚠️";
  font-size: 16px;
  line-height: 1;
}
.field-error.show {
  display: flex;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
  width: 100%;
  padding: 10px 0;
}
@media (max-width: 768px) {
  .footer {
    margin-top: 10px;
    padding: 10px 20px;
  }
}
/* Success Popup Styles */
.success-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);

  z-index: 9999;
}
.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4caf50;
  border-radius: 50%;
  color: white;
  font-size: 2.5rem;
}

.success-popup {
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 15px rgba(0, 0, 255, 0.2);
  text-align: center;
  animation: successSlideIn 0.4s ease-out;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-popup .success-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: successBounce 0.6s ease-out;
}

.success-popup .success-title {
  color: navy;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.success-popup .success-message {
  color: navy;
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.success-popup .success-note {
  color: navy;
  font-size: 14px;
  margin-bottom: 25px;
}

.success-popup .success-button {
  background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.success-popup .success-button:hover {
  background: linear-gradient(to bottom, #2563eb, #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Error Popup Styles */
.error-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0);
  z-index: 9999;
}

.error-popup {
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 15px rgba(0, 0, 255, 0.2);
  text-align: center;
  animation: errorShake 0.5s ease-out;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

.error-popup .error-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #d32f2f;
}

.error-popup .error-title {
  color: navy;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

.error-popup .error-message {
  color: navy;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.error-popup .error-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.error-popup .error-button {
  background: linear-gradient(135deg, #f44336, #e53935);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}
.error-button a {
  text-decoration: none;
  color: white;
}

.error-popup .error-button:hover {
  background: linear-gradient(135deg, #e53935, #f44336);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.error-popup .retry-button {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.error-popup .retry-button:hover {
  background: linear-gradient(135deg, #f57c00, #ff9800);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

/* Animations */
@keyframes successSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

@keyframes successBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes errorShake {
  0%,
  100% {
    transform: translate(-50%, -50%) translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translate(-50%, -50%) translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translate(-50%, -50%) translateX(5px);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .success-popup,
  .error-popup {
    padding: 25px;

    margin: 0px auto;
  }

  .success-popup .success-icon,
  .error-popup .error-icon {
    font-size: 36px;
  }

  .success-popup .success-title,
  .error-popup .error-title {
    font-size: 20px;
  }

  .error-popup .error-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
