:root {
  --bg-start: #667eea;
  --bg-end: #764ba2;
  --surface: rgba(255, 255, 255, 0.14);
  --surface-strong: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --accent: #5ad6ff;
  --accent-strong: #2fb6e8;
  --outline: rgba(255, 255, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Tajawal", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
  position: relative;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(24px, 6vw, 80px) 64px;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  top: -180px;
  left: -140px;
  opacity: 0.9;
  z-index: 0;
}

.page::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  bottom: -220px;
  right: -160px;
  opacity: 0.7;
  z-index: 0;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 48px;
  position: relative;
  z-index: 1;
}

.brand {
  font-family: "Playfair Display", "Tajawal", serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 64px 0 40px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  margin-top: 10px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0b0b;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.login-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  border-radius: inherit;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  color: var(--accent);
}

.login-btn:hover::before {
  transform: scale(1.35);
}

.login-btn:focus-visible {
  outline: 3px solid rgba(90, 214, 255, 0.45);
  outline-offset: 4px;
}

.section-divider {
  width: min(280px, 70%);
  height: 2px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(90, 214, 255, 0.7), rgba(255, 255, 255, 0));
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.features {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feature-card {
  width: min(820px, 92%);
  text-align: center;
  padding: 28px 26px 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--outline);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.feature-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-text {
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  line-height: 1.8;
  width: 100%;
  margin: 0 auto;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .page {
    padding: 22px 22px 48px;
  }

  .hero {
    gap: 10px;
    padding: 48px 0 26px;
  }

  .feature-card {
    padding: 20px 18px 24px;
  }

  .feature-text {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
