* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --color-burgundy: #8b4a4a;
  --color-cream: #f8f2dc;
  --color-chocolate: #2a0c0c;
  --color-brown: #7d4a2e;
  --color-pink: #ffbfbf;
}

body {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  position: relative;
  width: 800px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-container {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-container {
  left: 0;
  padding: 40px;
  z-index: 1;
  opacity: 0;
  transform: translateX(-100%);
}

.register-container {
  left: 0;
  padding: 40px;
  z-index: 2;
  opacity: 1;
}

.cake-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  background: white;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.cake-image {
  width: 90%;
  height: auto;
  position: relative;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.cake-plate {
  width: 300px;
  height: 300px;
  background-color: #f5f5f5;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cake {
  width: 200px;
  height: 150px;
  background: linear-gradient(to bottom, #3c1f0e, #2a1507);
  border-radius: 10px 10px 0 0;
  position: relative;
  overflow: hidden;
}

.cake::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #e91e63;
}

.cake::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.frosting {
  position: absolute;
  top: -15px;
  left: -10px;
  width: calc(100% + 20px);
  height: 30px;
  background: #6b3e26;
  border-radius: 15px 15px 0 0;
}

.drip {
  position: absolute;
  top: 0;
  width: 30px;
  height: 40px;
  background: #6b3e26;
  border-radius: 0 0 15px 15px;
}

.drip:nth-child(1) {
  left: 20px;
  height: 50px;
}

.drip:nth-child(2) {
  left: 70px;
  height: 35px;
}

.drip:nth-child(3) {
  left: 120px;
  height: 45px;
}

.drip:nth-child(4) {
  left: 170px;
  height: 30px;
}

.register-form {
  padding-top: 10px;
}

.form-title {
  font-size: 28px;
  color: var(--color-burgundy);
  margin-bottom: 30px;
  font-family: "Vibur", cursive;
  font-weight: 400;
  font-style: normal;
}

.subtitle {
  font-size: 16px;
  color: var(--color-brown);
  margin-top: -25px;
  margin-bottom: 30px;
}

.input-field {
  position: relative;
  margin-bottom: 20px;
}

.input-field input {
  width: 100%;
  padding: 12px;
  border: none;
  border-bottom: 2px solid #ccc;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.input-field input:focus {
  color: var(--color-burgundy);
}

.input-field label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 16px;
  color: #999;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  top: -10px;
  font-size: 12px;
  color: var(--color-burgundy);
}

.btn {
  width: 100%;
  padding: 12px;
  background: var(--color-chocolate);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--color-brown);
}

.link {
  margin-top: 20px;
  text-align: center;
  color: #666;
}

.link a {
  color: var(--color-pink);
  text-decoration: none;
  cursor: pointer;
}

.link a:hover {
  text-decoration: underline;
}

.chocolate-drop {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #3c1f0e;
  border-radius: 50%;
  opacity: 0;
  z-index: 10;
}

@keyframes drip {
  0% {
    transform: translateY(-100px) scale(0);
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translateY(800px) scale(1);
    opacity: 0;
  }
}

.active .login-container {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

.active .register-container {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}

.scroll-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.scroll-container::-webkit-scrollbar {
  width: 5px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--color-pink);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .container {
    width: 90%;
    height: auto;
    min-height: 500px;
  }

  .form-container {
    width: 100%;
    position: relative;
    padding: 30px;
  }

  .cake-container {
    display: none;
  }

  .login-container,
  .register-container {
    left: 0;
    transform: none;
  }

  .active .register-container {
    transform: translateX(-100%);
  }
}
