@import url('https://fonts.googleapis.com/css?family=Roboto:300');

body {
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

#logoin {
  text-align: center;
  margin: 10px auto;
  display: flex;
  justify-content: center;
}

.login-page {
  width: 360px;
  margin: auto;
}

.form {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 0.1em solid #0054a6;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 30px;
  text-align: center;
  border-radius: 25px;
  height: 450px;
}

.form input {
  width: 100%;
  margin-bottom: 15px;
  padding: 15px;
  font-size: 14px;
  text-align: center;
  border-radius: 10px;
  border: 0.1em solid #0054a6;
  box-sizing: border-box;
}

.form button {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  background: #0054a6;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form button:hover {
  background: #0cb040;
}

.form .message {
  margin-top: 15px;
  font-size: 12px;
  color: #0054a6;
}

.form .message a {
  color: #67b837;
  text-decoration: none;
}

.card {
  display: flex;
  border: 1px solid #ccc;
  padding: 10px;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 25px;
  background-color: #0054a6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  height: 470px;
}

.card-left img {
  max-width: 100%;
  height: 380px;
  border-radius: 25px 0 0 25px;
  object-fit: cover;
  margin-top: 12%;
}

.card-right {
  flex: 1;
  margin-left: 20px;
}

.card-right form {
  display: flex;
  flex-direction: column;
  height: 350px;
  margin-top: 12%;
}

/* ===== Responsive 1024px ↓ ===== */
@media screen and (max-width: 1024px) {
  .card {
    flex-direction: column;
    max-width: 90%;
    height: auto;
    padding: 20px 15px;
  }

  .card-left img {
    width: 100%;
    height: auto;
    border-radius: 25px 25px 0 0;
    margin-top: 0;
  }

  .card-right {
    margin: 20px 0 0;
  }

  .card-right form {
    margin-top: 0;
    height: auto;
  }

  .form {
    height: auto;
  }
}

/* ===== Responsive 600px ↓ ===== */
@media screen and (max-width: 600px) {
  .login-page {
    width: 100%;
    padding: 0 10px;
  }

  .form {
    padding: 15px;
  }

  .form input,
  .form button {
    padding: 12px;
    font-size: 13px;
  }

  .card {
    padding: 10px 5px;
  }

  .card-left img {
    border-radius: 15px 15px 0 0;
  }
}
