/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
  background: #0b1321; /* UPDATED THEME COLOR */
}

/* MAIN WRAPPER */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* LEFT PANEL (white card on dark bg) */
.left {
  width: 50%;
  background: #0b1321;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
}

/* LOGIN CARD */
.login-container {
  width: 80%;
  max-width: 420px;
  text-align: center;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffffff;
}

.image img {
  width: 300px;
  margin-bottom: 15px;
}

h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #ffffff;
}

/* INPUT FIELDS */
input {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  background: #f8f8f8;
}

input:focus {
  outline: none;
  border-color: #006eff;
  box-shadow: 0px 0px 6px rgba(0, 110, 255, 0.4);
  background: #ffffff;
}

/* BUTTON */
button {
  width: 100%;
  padding: 14px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: #0062cc;
}

/* ERROR TEXT */
#msg {
  margin-top: 10px;
  color: #d9534f;
}

.keyboard-hint {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
}

.right {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0b1321;
  overflow: hidden;
}

.right img {
  width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* Dark fade overlay */
.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 33, 0.65); /* adjustable */
  z-index: 1;
}

/* --------------- RESPONSIVE --------------- */

/* TABLETS */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .left,
  .right {
    width: 100%;
    padding: 30px;
  }

  .right img {
    max-width: 500px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .left {
    padding: 20px;
  }

  .login-container {
    width: 100%;
  }

  .logo {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
  }

  input,
  button {
    font-size: 14px;
    padding: 12px;
  }

  .right {
    padding: 10px;
  }

  .right img {
    width: 100%;
    object-fit: contain;
  }
}
