:root {
  --accent1: #6c5ce7;
  --accent2: #00b894;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text: #1f2937;
  --muted: #6b7280;
  --danger: #ef4444;
  font-family: "Inter", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: linear-gradient(
    135deg,
    var(--accent1),
    rgba(108, 92, 231, 0.85) 40%,
    rgba(0, 184, 148, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.2);
  padding: 28px;
  backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent1);
  box-shadow: 0 6px 18px rgba(12, 12, 60, 0.08);
}
h1 {
  font-size: 20px;
  margin: 0 0 6px;
}
p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

form {
  margin-top: 18px;
}
.field {
  margin-top: 14px;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  outline: none;
  font-size: 14px;
}
.input-row {
  position: relative;
}
.eye-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}

.helper {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 8px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: white;
  box-shadow: 0 8px 20px rgba(12, 12, 60, 0.12);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.small-link {
  font-size: 13px;
  color: var(--accent1);
  text-decoration: none;
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.or hr {
  flex: 1;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 23, 42, 0.06),
    transparent
  );
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.socials button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: white;
  font-weight: 600;
  cursor: pointer;
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 520px) {
  .card {
    padding: 20px;
    border-radius: 12px;
  }
  .logo {
    width: 42px;
    height: 42px;
  }
}
