/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
}

/* MAIN LAYOUT */
.container {
  display: flex;
  min-height: 100vh;
}

/* LEFT SIDE */
.left {
  flex: 1.2;
  background: #ff69b4;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 50px;
}

.logo {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tagline {
  font-size: 15px;
  opacity: 0.9;
}

/* RIGHT SIDE */
.right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.login-box {
  background: #fff;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ERROR BOX */
.error-box {
  background: #ffe1e1;
  color: #b10000;
  padding: 12px;
  border-left: 4px solid #ff3b3b;
  margin-bottom: 18px;
  border-radius: 4px;
}

/* FORM INPUT GROUP */
.form-group {
  margin-bottom: 20px;
}

label {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  display: block;
}

/* INPUT ICON WRAPPER */
.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
}

.input-icon input,
.input-icon select {
  padding-left: 45px !important;
}

/* INPUT GENERAL */
input, select {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #bbb;
  transition: .2s;
}

input:focus, select:focus {
  border-color: #ff4fa6;
  box-shadow: 0 0 6px rgba(255, 105, 180, .4);
  outline: none;
}

/* PASSWORD WRAPPER */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
  display: none;
}

.toggle-password.show {
  display: block;
}

/* BUTTON */
.login-btn {
  width: 100%;
  padding: 15px;
  background: #ff69b4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}

.login-btn:hover {
  background: #ff4fa6;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 14px;
  background: #eee;
  font-size: 13px;
  color: #555;
}

/* =============================
   RESPONSIVE — TABLET
============================= */
@media (max-width: 900px) {
  .left {
    padding: 30px;
    text-align: center;
  }

  .logo {
    font-size: 28px;
  }

  .login-box {
    max-width: 360px;
  }
}

/* =============================
   RESPONSIVE — HP
============================= */
@media (max-width: 600px) {

  .container {
    flex-direction: column;
  }

  .left {
    padding: 25px 20px;
  }

  .logo {
    font-size: 22px;
  }

  .right {
    padding: 15px;
  }

  input, select {
    padding: 16px;
    font-size: 17px;
  }

  .login-box {
    max-width: 95%;
    padding: 22px;
    border-radius: 12px;
  }

  .footer {
    margin-top: 10px;
  }

  /* Icon lebih besar di HP */
  .input-icon i {
    font-size: 20px;
    left: 10px;
  }
}
