* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --second-color: #ffffff;
  --black-color: #000000;
  --gradient-purple-pink: linear-gradient(135deg, #667eea 0%, #764ba2 100%, #e91e63 100%);
}

body {
  background: #ffffff;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a:hover {
  text-decoration: underline;
}

.wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: transparent;
}

.login_box {
  position: relative;
  width: 450px;
  backdrop-filter: blur(25px);
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%) border-box;
  border-radius: 15px;
  padding: 7.5em 2.5em 4em 2.5em;
  color: #333333;
  box-shadow: 0px 0px 20px 5px rgba(102, 126, 234, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.login-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%);
  width: 140px;
  height: 70px;
  border-radius: 0 0 20px 20px;
}

.login-header span {
  font-size: 30px;
  color: #ffffff;
  font-weight: 600;
}

.login-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30px;
  width: 30px;
  height: 30px;
  border-top-right-radius: 50%;
  background: transparent;
  box-shadow: 15px 0 0 0 #764ba2;
}

.login-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 30px;
  height: 30px;
  border-top-left-radius: 50%;
  background: transparent;
  box-shadow: -15px 0 0 0 #764ba2;
}

.input_box {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 15px 0;
}

.input-field {
  width: 100%;
  height: 55px;
  font-size: 16px;
  background: transparent;
  color: #333333;
  padding-inline: 20px 50px;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%) border-box;
  border-radius: 30px;
  outline: none;
}

.input-field:focus {
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

#user {
  margin-bottom: 10px;
}

.label {
  position: absolute;
  top: 15px;
  left: 20px;
  transition: 0.2s;
  color: #666666;
}

.input-field:focus ~ .label,
.input-field:valid ~ .label {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%);
  border-radius: 30px;
  color: #ffffff;
  padding: 0 10px;
}

.icon {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.input-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.input-submit:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 50%, #d1195b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.register {
  text-align: center;
  color: #333333;
}

.register a {
  font-weight: 500;
}

.remember-forgot {
  color: #333333;
}

.remember-forgot a {
  font-weight: 500;
}

.error-message {
  color: #ff4444;
  font-size: 14px;
  margin-top: 5px;
  padding-left: 20px;
}

.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.flash-success {
  background-color: #4CAF50;
}

.flash-error {
  background-color: #f44336;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media only screen and (max-width: 564px) {
  .wrapper {
    padding: 20px;
  }

  .login_box {
    padding: 7.5em 1.5em 4em 1.5em;
  }
}