:root {
  --primary-bg: #13111C;
  --secondary-bg: #1E1B2E;
  --accent: rgb(61, 106, 255);
  --text-clr: rgba(255, 255, 255, 0.7);
  --gradient: linear-gradient(90deg, #5f94ff, #0900ab);
}

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Shippori Mincho", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Serif", "Noto Sans JP", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Kaku Gothic ProN", "Meiryo", "MS PGothic", "MS PMincho", "Tahoma", Geneva, sans-serif;
}

body {
  background: var(--primary-bg);
  color: var(--text-clr);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: 70px;
  min-height: calc(100vh - 70px - 300px);
}

.split__container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 70px - 300px);
}

.split__left {
  flex: 1;
  padding: 4rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.feature__content h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature__content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.feature__list {
  display: grid;
  gap: 1.5rem;
}

.feature__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.feature__item i {
  width: 40px;
  height: 40px;
  background: rgba(61, 106, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.decorative__circles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.circle {
  position: absolute;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite;
}

.circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -50px;
  animation-delay: 0s;
}

.circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 10%;
  animation-delay: -5s;
}

.circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}

.split__right {
  flex: 1;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.forms__container {
  width: 100%;
  max-width: 450px;
  position: relative;
  perspective: 1000px;
}

.form__box {
  background: var(--secondary-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.form__box.register {
  transform: rotateY(180deg);
}

.form__box.active {
  transform: rotateY(0);
  position: relative;
}

.form__box.inactive {
  transform: rotateY(180deg);
  position: absolute;
  pointer-events: none;
}

h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.subtitle {
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.input__group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.input__field {
  position: relative;
}

.input__field input {
  width: 100%;
  padding: 15px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input__field input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.input__field i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}

.input__field {
  left: auto;
  right: 15px;
}

.focus__border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.input__field input:focus ~ .focus__border {
  width: 100%;
}

.remember__forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.remember__forgot label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.remember__forgot input[type="checkbox"] {
  accent-color: var(--accent);
}

.forgot__link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.register-list {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  list-style: none;
}

.register-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
}

.register-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-size: 1.5rem;
  line-height: 1;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 4px 6px -2px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px 0 rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.support-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px 0 rgba(255, 255, 255, 0.06);
}

.support-button:hover::before {
  transform: translateX(100%);
}

.support-button:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.forgot__link:hover {
  color: #5f94ff;
}

.submit__btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(95, 148, 255, 0.3);
}

.submit__btn i {
  transition: transform 0.3s ease;
}

.submit__btn:hover i {
  transform: translateX(5px);
}

.switch__text {
  text-align: center;
  margin-top: 20px;
}

.switch__btn {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.switch__btn:hover {
  color: #5f94ff;
}


.input__field.error input {
  border: 1px solid #ff3860;
}

.error__message {
  color: #ff3860;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.input__field.error .error__message {
  display: block;
}

.submit__btn.loading {
  position: relative;
  color: transparent;
}

.submit__btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success__checkmark {
  color: #4CAF50;
  font-size: 1.2rem;
  animation: scale 0.3s ease;
}

@keyframes scale {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@media (max-width: 1200px) {
  .split__left {
    padding: 2rem;
  }
  
  .split__right {
    padding: 2rem;
  }
}

@media (max-width: 900px) {
  .split__container {
    flex-direction: column;
  }
  
  .split__left {
    display: none;
  }
  
  .split__right {
    padding: 2rem 1rem;
  }
}