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

body {
  height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* WRAPPER */
.wrapper {
  width: 100%;
  padding: 20px;
}

/* CARD */
.card {
  max-width: 400px;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* TEXT */
h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* INPUT */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #fff;
  outline: none;
  font-size: 14px;
}

/* FLOAT LABEL */
.input-group label {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 13px;
  color: #64748b;
  pointer-events: none;
  transition: 0.2s;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -8px;
  left: 8px;
  background: #0f172a;
  padding: 0 5px;
  font-size: 11px;
}

/* PASSWORD EYE */
.password-group {
  position: relative;
}

.eye {
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #94a3b8;
}

/* BUTTON */
.primary-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.primary-btn:hover {
  opacity: 0.9;
}

/* LINKS */
.extra-links {
  text-align: right;
  margin-top: 10px;
}

.extra-links a {
  font-size: 13px;
  color: #3b82f6;
  text-decoration: none;
}

.switch {
  margin-top: 15px;
  font-size: 13px;
  color: #94a3b8;
}

.switch a {
  color: #3b82f6;
  text-decoration: none;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e293b;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-left: 4px solid #16a34a; }
.toast.error { border-left: 4px solid #dc2626; }

/* INPUT ERROR */
.input-error {
  border-color: #dc2626 !important;
}

/* ERROR TEXT */
.error-text {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* STRENGTH BAR */
.strength-bar {
  height: 5px;
  background: #334155;
  border-radius: 5px;
  margin-top: 6px;
  overflow: hidden;
}

#strengthFill {
  height: 100%;
  width: 0%;
  background: red;
  transition: 0.3s;
}

/* REMEMBER */
.remember {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 15px;
  color: #94a3b8;
}

.remember input {
  margin-right: 6px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  h2 {
    font-size: 20px;
  }
}
