body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Malgun Gothic", sans-serif;
  background-color: #f0f0f0;
  background-image: radial-gradient(#cccccc 1px, transparent 1px);
  background-size: 10px 10px;
}

body.register-page {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

.left-panel {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  background-image: radial-gradient(#cccccc 1px, transparent 1px);
  background-size: 10px 10px;
}

.right-panel {
  flex: 1;
  background-color: #8c1b2f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-panel {
  background-color: #ffffff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.main-logo {
  width: max(70%, 350px);
  height: auto;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  gap: 20px;
}
.title-container.left-aligned {
  justify-content: left;
}

.title-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}
.title-icon.large {
  width: 80px;
  height: 80px;
}

h2 {
  color: #ffffff;
  text-align: center;
  margin: 0;
  font-size: 24px;
}
.form-panel h2 {
  color: #333333;
}

.divider {
  height: 3px;
  background-color: #ffffff;
  margin-bottom: 0;
  width: 100%;
  border-radius: 2px;
}
.form-panel .divider {
  background: linear-gradient(to right, #d9103a, #7a0410);
}

.login-container {
  width: 300px;
}

.input-group {
  margin-bottom: 0;
  text-align: left;
}
.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #555555;
  font-weight: 600;
  font-size: 14px;
}
.input-group label .required {
  color: #d9103a;
  margin-left: 4px;
}
.input-group input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #e0e0e0;
  color: #333333;
  font-size: 16px;
  transition: all 0.3s ease;
}
.input-group input:focus {
  outline: none;
  background-color: rgb(236.75, 236.75, 236.75);
  box-shadow: 0 0 0 3px rgba(217, 16, 58, 0.1);
}
.input-group input::placeholder {
  color: #999;
  font-size: 14px;
}
.input-group .field-description {
  margin-top: 6px;
  font-size: 12px;
  color: #555555;
  line-height: 1.4;
}
.input-group .field-description.error {
  color: #d9103a;
}
.input-group .field-description.info {
  color: #666;
}

#register-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}
#register-form .input-group {
  grid-column: span 1;
}
#register-form .submit-btn {
  grid-column: span 1;
  margin-top: 10px;
}

.login-container input[type=text],
.login-container input[type=password] {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  background-color: #f0e9e0;
  box-sizing: border-box;
}

button, .submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: #333333;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
button:hover, .submit-btn:hover {
  background-color: rgb(76.5, 76.5, 76.5);
}
button:active, .submit-btn:active {
  background-color: rgb(25.5, 25.5, 25.5);
}

.submit-btn {
  margin-top: 10px;
}

.forgot-password {
  text-align: center;
  margin-top: 20px;
}
.forgot-password a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.forgot-password a:hover {
  color: hsl(0, 0%, 120%);
  text-decoration: underline;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  position: relative;
}
.login-link span {
  color: #555555;
  margin-right: 8px;
  background-color: #ffffff;
  padding: 0 8px;
  font-size: 14px;
}
.login-link a {
  color: #d9103a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.login-link a:hover {
  color: #7a0410;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .left-panel,
  .right-panel {
    flex: none;
    width: 100%;
  }
  .left-panel {
    height: 40%;
  }
  .right-panel {
    height: 60%;
    padding: 20px;
  }
  .form-panel {
    width: 95%;
    max-width: 500px;
    padding: 30px;
    margin: 0 auto;
    gap: 25px;
  }
  #register-form {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  #register-form .input-group {
    grid-column: span 1;
  }
  #register-form .submit-btn {
    grid-column: span 1;
  }
  .main-logo {
    width: 250px;
  }
  .title-icon {
    width: 40px;
    height: 40px;
  }
  .title-icon.large {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 480px) {
  .form-panel {
    padding: 15px;
  }
  .right-panel {
    padding: 15px;
  }
  .main-logo {
    width: 200px;
  }
  h2 {
    font-size: 20px;
  }
}
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mt-20 {
  margin-top: 20px;
}

.p-40 {
  padding: 40px;
}

.p-20 {
  padding: 20px;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-in {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
.login-link {
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.forgot-password {
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  color: #ffffff;
  padding: 1rem;
}
