@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 35px 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-mark i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d69b2d;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.brand-mark span {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  text-align: center;
}

.subtitle {
  font-size: 0.88rem;
  font-weight: 300;
  color: black;
  margin-bottom: 24px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 13px 45px 13px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  outline: none;
  font-size: 0.95rem;
  color: #ffffff;
  transition: all 0.25s ease;
}

.input-group input::placeholder {
  color: black;
}

.input-group input:focus {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
}

.input-icon {
  position: absolute;
  right: 18px;
  color: black;
  font-size: 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  margin-bottom: 4px;
}

.forgot-link {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
  background-color: #22c55e;
  border-color: #22c55e;
}

.remember-me input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #ffffff;
  font-size: 0.7rem;
}

.remember-me label {
  font-size: 0.82rem;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

.remember-me label a {
  color: #a3e635;
  font-weight: 600;
  text-decoration: none;
}

.remember-me label a:hover {
  text-decoration: underline;
}

.field-error {
  font-size: 0.75rem;
  color: #ffd7d7;
  margin-top: -8px;
  display: none;
}

.field-error.show {
  display: block;
}

.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #a3e635 0%, #10b981 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  margin-top: 6px;
}

.login-btn:hover {
  opacity: 0.92;
}

.login-btn:active {
  transform: scale(0.98);
}

.signup-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.signup-text a {
  color: #10b981;
  font-weight: 600;
  text-decoration: none;
}

.signup-text a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .login-card {
    padding: 28px 22px;
  }

  .title {
    font-size: 1.85rem;
  }
}
