@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Inter', sans-serif;
  color: #333;
  height: 100%;
  background-color: #f4f4f4;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  display: flex;
  width: 900px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
  overflow: hidden;
}

.left, .right {
  padding: 40px;
  flex: 1;
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.left h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #007BFF;
}

.left p {
  margin-bottom: 30px;
  font-size: 1.2em;
  color: #666;
}

.user-box {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.user-box input {
  width: 100%;
  padding: 10px 2px;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
}

.user-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: #666;
  pointer-events: none;
  transition: 0.5s;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
  top: -30px;
  left: 0;
  color: #007BFF;
  font-size: 12px;
}

button {
  display: inline-block;
  margin: 0 auto;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
  width: 200px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

a {
  text-align: center;
  color: #007BFF;
  margin-top: 10px;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
}

.error {
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 15px;
  color: red;
}

.right {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #007BFF;
}

.right img {
  width: 100%;
  border-radius: 15px 0 0 15px;
}

@media screen and (max-width: 900px) {
  .login-box {
    flex-direction: column;
  }



  .right {
    display: none;
  }

  .left {
    width: 100%;
    padding: 20px;
  }

  form {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}
