* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  width: 800px;
  height: 500px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.logo-section {
  flex: 1;
  background-color: #4a6cf7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-section img {
  max-width: 90%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.form-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section h3 {
  margin-bottom: 24px;
  margin-top: 5px;
  color: #333;
  font-size: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.3s;
}

.form-group input:focus {
  border-color: #4a6cf7;
  outline: none;
}

.forgot-password {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-password a {
  font-size: 14px;
  color: #4a6cf7;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.register {
  margin-top: 16px;
  text-align: center;
}

.register a {
  font-size: 14px;
  color: #4a6cf7;
  text-decoration: none;
}

.register a:hover {
  text-decoration: underline;
}

.message-box {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #fee;
  color: #c30;
  border: 1px solid #fcc;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

button {
  background-color: #4a6cf7;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

button:hover {
  background-color: #3a5be5;
}

@media (max-width: 768px) {
  body{
    height: 100%;
  }
  .container {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 0;
    border-radius: 0;
  }

  .logo-section {
    padding: 40px 20px;
    min-height: 220px;
    background-color: #4a6cf7;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-section img {
    max-width: 70%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  }

  .form-section {
    padding: 30px 20px;
    overflow-y: auto;
  }

  .form-section h3 {
    font-size: 1.1rem;
    margin-top: 8px;
  }
}