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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #cdd2fd;
  overflow: hidden;
}

.login-container {
  display: flex;
  width: 90%;
  height: 90vh;
  max-width: 1200px;
  margin: 40px auto;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  position: relative;
}

.login-left {
  flex: 1.2;
  position: relative;
  overflow: hidden;
}

.side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-right {
  flex: 0.8;
  background: #FFFFFF;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  clip-path: path("M0,0 Q50,50 0,100 L100%,100 L100%,0 Z");
}

.logo {
  width: 150px;
  margin: 0 auto 10px;
  display: block;
}

.welcome {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 5px;
}

.instruction {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 25px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #5b6de0;
  border-radius: 30px;
  padding: 10px 20px;
}

.input-group i {
  color: #5b6de0;
  margin-right: 10px;
}

.input-group input {
  border: none;
  outline: none;
  /*width: 100%;*/
  font-size: 16px;
  background: transparent;
}

.toggle-password {
  position: absolute;
  right: 20px;
  cursor: pointer;
  color: #999;
}

.forgot-pass {
  text-align: right;
  font-size: 13px;
}

.forgot-pass a {
  text-decoration: none;
  color: #555;
}

.login-btn {
  background: #0a0e3f;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background: #232968;
}

/* ✅ Responsive media query */

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .login-container {
    flex-direction: column;
    height: auto;
    width: 95%;
    margin: 20px auto;
  }

  .login-left {
    width: 100%;
    height: 200px;
  }

  .side-image {
    height: 100%;
    object-fit: cover;
  }

  .login-right {
    width: 100%;
    padding: 30px 20px;
    border-radius: 0;
    clip-path: none;
  }

  .logo {
    width: 120px;
  }
}