/* for the login and register pages */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --black: #0a0a0f;
  --black2: #12080a;
  --white: #ffffff;
  --blue: #F0392F;
  --blueLight: #FF6B4D;

  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.68);

  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.10);

  --border: rgba(255, 255, 255, 0.14);
  --borderBlue: rgba(240, 57, 47, 0.40);

  --radius: 22px;
  --shadow: 0 35px 90px rgba(0, 0, 0, 0.82);
}

* {
  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;
  padding: 22px;

  background:
    radial-gradient(circle at 12% 15%, rgba(240, 57, 47, 0.35), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(240, 57, 47, 0.14), transparent 50%),
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(135deg, var(--black), var(--black2));
}

/* Card for both login + register */
.login-card,
.auth-card {
  width: 400px;
  padding: 46px 46px;
  border-radius: var(--radius);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.03)
  );

  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

/* Register wider */
.auth-card {
  width: 520px;
}

/* Outer glow border ring */
.login-card::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  padding: 2px;

  background: linear-gradient(
    120deg,
    rgba(240, 57, 47, 0.85),
    rgba(255, 255, 255, 0.10),
    rgba(240, 57, 47, 0.40)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0.65;
  pointer-events: none;
}

/* Inside glow blobs — kept subtle so the card stays dark/clean, not muddy */
.login-card::after,
.auth-card::after {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 25% 20%, rgba(240, 57, 47, 0.14), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(240, 57, 47, 0.08), transparent 60%);
  z-index: 0;
}

/* Keep content above glow */
.login-card > *,
.auth-card > * {
  position: relative;
  z-index: 2;
}

/* Hover effect */
.login-card:hover,
.auth-card:hover {
  transform: translateY(-8px);
  border-color: var(--borderBlue);
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.9);
}

/* Header */
.login-header h1,
.auth-card h1 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.login-header p,
.auth-card p {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.55;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 8px;
}

/* Inputs */
input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);

  color: var(--white);
  font-size: 14px;

  outline: none;
  transition: 0.22s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.40);
}

input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

input:focus {
  border-color: rgba(240, 57, 47, 0.90);
  box-shadow: 0 0 0 4px rgba(240, 57, 47, 0.18);
  transform: translateY(-1px);
}

/* Remember row fix (your inline style row) */
.form-group[style] {
  margin-top: -8px !important;
  margin-bottom: 22px !important;
}

/* Checkbox */
input[type="checkbox"] {
  width: auto;
  accent-color: var(--blue);
}

/* Links */
a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--blue);
}

/* Forgot password link (force theme) */
.form-group[style] a {
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 500;
}

.form-group[style] a:hover {
  color: var(--blue) !important;
  text-decoration: underline;
}

/* Button (Small + Premium) */
button {
  width: 100%;
  margin-top: 6px;
  padding: 11px 16px; /* smaller height */
  border: none;
  border-radius: 14px;

  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);

  background: linear-gradient(
    90deg,
    var(--blue),
    var(--blueLight)
  );

  box-shadow:
    0 12px 28px rgba(240, 57, 47, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);

  transition: 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 40px rgba(240, 57, 47, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

button:active {
  transform: translateY(0px);
}

/* Bottom link */
.signup-link {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
}

.signup-link a {
  color: var(--blue);
  font-weight: 700;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .login-card,
  .auth-card {
    width: 100%;
    padding: 30px 22px;
  }
}