@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap");

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Mode Palette */
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-sidebar: #181818;
  --bg-input: #2d2d2d;

  /* Text */
  --fg-clr: #f5f6fa;
  --text-grey: #a4b0be;

  /* Accents */
  --btn-gradient: linear-gradient(45deg, #FF512F 0%, #DD2476 50%, #FF512F 100%);
  --btn-fg: #fff;
  --input-border: #444;
  --divider: #444;
  --submit-bg: #1e2c4b;
  /* Fallback */

  --form-radius: 20px;
  --btn-radius: 12px;
}

body {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-dark);
  font-family: "Poppins", sans-serif;
  color: var(--fg-clr);
}

.form-container {
  background: var(--bg-card);
  width: 95%;
  border-radius: var(--form-radius);
  padding: 3em;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.heading {
  color: var(--fg-clr);
  margin-bottom: 1em;
  font-weight: 700;
}

.sub-heading {
  color: var(--text-grey);
  margin-bottom: 1em;
  font-weight: 600;
}

.btn {
  display: block;
  color: var(--btn-fg);
  text-decoration: none;
  padding: 1em;
  border-radius: var(--btn-radius);
  font-weight: 800;
  background: var(--btn-gradient);
  background-size: 200% auto;
  transition: all 0.3s;
}

.btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(221, 36, 118, 0.4);
}

.btn-facebook {
  background: #3b5998;
  margin-bottom: 1em;
}

.divider {
  color: var(--text-grey);
  margin: 1em;
  font-weight: 800;
  border-bottom: 1px solid var(--divider);
  display: block;
  line-height: 0.1em;
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

.form-input {
  border: 1px solid var(--input-border);
  outline: none;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--fg-clr);
  padding: 1em;
  width: 100%;
  border-radius: var(--btn-radius);
  transition: all 0.3s;
}

.form-input::placeholder {
  color: var(--text-grey);
}

.form-input:focus {
  border-color: #DD2476;
  background: #333;
}

.span-2 {
  grid-column: span 2;
}

.submit-btn {
  background: var(--btn-gradient);
  cursor: pointer;
  border: none;
}

.btm-line {
  margin: 2em auto;
  width: 60%;
  font-size: 0.8rem;
  color: var(--text-grey);
}

@media (min-width: 600px) {
  .form-container {
    width: 75%;
  }
}

@media (min-width: 900px) {
  .form-container {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .form-container {
    width: 40%;
  }
}

@media (min-width: 1270px) {
  .form-container {
    width: 30%;
  }
}