:root {
  --accent: #ff9800;
  --bg-overlay: rgba(0, 0, 0, 0.45);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --glass: rgba(255, 255, 255, 0.05);
  --radius: 12px;
  --transition: 0.3s ease-in-out;
  --shadow: rgba(0, 0, 0, 0.35);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, Arial, Helvetica, sans-serif;
}
html,
body {
  height: 100%;
}

body {
  background: linear-gradient(
      to bottom right,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.5)
    ),
    url("https://images.unsplash.com/photo-1506784983877-45594efa4cbe?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat fixed;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  width: 100%;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 16px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px var(--shadow);
}
.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
  flex: 1;
  margin-top: 100px;
  text-align: center;
  padding: 80px 20px 60px;
}
.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px var(--shadow);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  cursor: pointer;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color var(--transition), transform var(--transition);
}
.btn.primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px var(--shadow);
}
.btn.primary:hover,
.btn.primary:focus {
  background-color: #e68a00;
  transform: translateY(-3px);
  outline: none;
}

/* Features Section */
.features {
  background: var(--glass);
  padding: 40px 20px;
  text-align: center;
}
.features h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 20px;
}
.features ul {
  list-style: none;
  max-width: 320px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.1rem;
}
.features ul li {
  margin: 12px 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

/* Modal styles */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal-content {
  background: var(--glass);
  padding: 32px 28px;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75);
  position: relative;
  backdrop-filter: blur(12px);
  transition: background-position 0.3s ease;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition);
}
.close:hover,
.close:focus {
  color: var(--accent);
  outline: none;
}

/* Form Panel & Inputs */
.form-panel h2 {
  margin-bottom: 22px;
  text-align: center;
  font-weight: 700;
}
.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--muted);
}
.field input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.field input:focus {
  border-color: var(--accent);
}

.password-field {
  position: relative;
}
.pwd-toggle {
  position: absolute;
  top: 36px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Full width button */
.fullwidth {
  width: 100%;
}

/* Toast Notification */
#toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #222;
  padding: 14px 22px;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 6px 18px var(--shadow);
  z-index: 3000;
  display: none;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #111;
  color: var(--muted);
  text-align: center;
  padding: 30px 20px;
  width: 100%;
  margin-top: auto;
}
.footer-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}
.footer-desc {
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-credit {
  font-size: 0.85rem;
  color: #888;
}

/* Responsive */
@media (max-width: 520px) {
  .hero h2 {
    font-size: 2rem;
  }
  .hero p,
  .features ul li {
    font-size: 1rem;
  }
  header {
    padding: 12px 16px;
  }
  .logo h1 {
    font-size: 1.1rem;
  }
  .logo img {
    width: 50px;
    height: 50px;
  }
  .modal-content {
    padding: 24px;
  }
}
/* Smooth button hover animations */
.btn.primary:hover,
.btn.primary:focus {
  background-color: #e68a00;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 138, 0, 0.7);
  outline: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Password strength meter */
.password-strength-container {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}
.strength-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.strength-fill {
  height: 100%;
  width: 0%;
  background: red;
  transition: width 0.4s ease, background-color 0.4s ease;
  border-radius: 8px;
}
.strength-text {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Validation feedback */
input:invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 5px #e74c3c;
}

/* Smooth fade in/out toast */
#toast {
  transition: opacity 0.4s ease;
}
#toast.show {
  opacity: 1;
}
#toast.hide {
  opacity: 0;
  pointer-events: none;
}
