/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* BACKGROUND LIGHT EFFECT */
.background::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: #9f00ff;
  border-radius: 50%;
  filter: blur(150px);
  top: -150px;
  left: -150px;
  opacity: 0.2;
  z-index: 0;
}

.container {
  width: 90%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

/* CARD LAYOUT */
.card {
  display: flex;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  flex-direction: row;
}

/* LOGIN SIDE */
.login-form {
  flex: 1;
  padding: 40px 30px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.login-form h2 {
  margin-bottom: 30px;
  font-size: 26px;
}

/* INPUTS */
.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 16px;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 45px;
  background:none;
  border: none;
  border-bottom: 3px solid #fff;
  color: #fff;
  font-size: 14px;
  outline: none;
  /* backdrop-filter: blur(5px); */
  transition: 0.3s ease;
}

/* .input-group input:focus {
  border-color: #9f00ff;
  box-shadow: 0 0 8px #9f00ff;
} */

/* BUTTON */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(to right, #6e00ff, #9f00ff);
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}

/* TEXT BELOW */
.bottom-text {
  font-size: 13px;
  margin-top: 20px;
}

.bottom-text a {
  color: #b266ff;
  text-decoration: none;
}

/* ANGLED WELCOME PANEL */
.welcome-panel {
  flex: 1;
  background: linear-gradient(to bottom right, #6e00ff, #9f00ff);
  color: white;
  padding: 40px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.welcome-panel h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.welcome-panel p {
  font-size: 16px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    height: auto;
  }

  .welcome-panel {
    display: none; /* Hide triangle section */
  }

  .login-form {
    padding: 40px 30px;
    width: 100%;
  }

  .card {
    border-radius: 20px;
    width: 90%;
    margin: 0 auto;
  }

  .input-group input {
    font-size: 16px;
    padding: 14px 14px 14px 45px;
  }

  button {
    font-size: 18px;
  }

  .login-form h2 {
    font-size: 24px;
    text-align: center;
  }

  .bottom-text {
    text-align: center;
  }
}
