@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;600;700&display=swap");

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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 20px;
  background: #0f0f0f;
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url("/img/pen_login_2.jpg") center/cover no-repeat;
  z-index: -1;
}

.wrapper {
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #fff;
  transition: all 0.3s ease;
}

h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-field {
  position: relative;
  border-bottom: 2px solid #aaa;
  transition: border-color 0.3s;
}

.input-field input {
  width: 100%;
  height: 45px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
  padding: 0 5px;
}

.input-field label {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  pointer-events: none;
  transition: 0.2s ease all;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  top: 5px;
  font-size: 0.75rem;
  color: #fff;
}

.forget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #ccc;
}

#remember {
  accent-color: #ccc;
}

.forget label {
  display: flex;
  align-items: center;
}

.forget label p {
  margin-left: 8px;
}

.wrapper a {
  color: #ddd;
  text-decoration: none;
  transition: 0.2s;
}

.wrapper a:hover {
  color: #fff;
  text-decoration: underline;
}

button {
  background: #fff;
  color: #000;
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.register {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #bbb;
}
