/* Import fonts */
/* Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
/* Bodoni Moda Font */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400..900&display=swap');
/* Unna Font */
@import url('https://fonts.googleapis.com/css2?family=Unna:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Custom properties */
:root {
  --light-color-darkbg: #fff8f0;
  --dark-color-lightbg: #6a1103;
  --primary-background-color: #eeeee6;
  --placeholder-background-color: #FFE9A0;
  --green-accent-color: #0e4322;
  --red-accent-color: #6a1103;
  --yellow-accent-color: #f6e6cf;
  --yellow-accent-color2: #DBC065;
  --brown-accent-color: #442D22;
  --primary-accent-color: #0e4322;
  --gradient-color: linear-gradient(115deg, #3a5240, #fad648, #a767e5, #12bcfe, #44ce7b);
  --font-family-footer-header: normal 900 normal 1rem "Bodoni Moda", serif;
  --font-family-header: normal 700 normal 1rem "Unna", serif;
  --font-family-para: normal 300 normal 1rem 'Poppins', sans-serif;
  --font-size-xsm: 1.4rem;
  --font-size-sm: 1.6rem;
  --font-size-md: 2.4rem;
  --font-size-lg: 3rem;
  --font-size-xl: 4rem;
  --menu-button-size: 2.5rem;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */
  font-size: 62.5%;
}

body {
  font: var(--font-family-para);
  font-size: var(--font-size-sm);
  color: var(--dark-color-lightbg);
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background-color: transparent;
  outline: none;
}

.account-section-grid,
.logged-in-section {
  width: 100%;
  max-width: 60rem;
  padding: 0;
  margin-block: 10rem;
}

.account-section-grid>h2,
.logged-in-section>h2 {
  font: var(--font-family-header);
  font-size: var(--font-size-xl);
  margin: 1rem;
}

.logged-in-section>h2:nth-of-type(1) {
  margin-bottom: 3rem;
}

.logged-in-section>h2:nth-of-type(2) {
  font-size: var(--font-size-md);
  margin-bottom: 0;
}

.account-section-grid>p,
.logged-in-section>p {
  font: var(--font-family-para);
  font-size: var(--font-size-sm);
  margin: 1.5rem;
}

.account-section-grid>p>a::after {
  content: "";
  position: absolute;
  background-color: var(--dark-color-lightbg);
  height: 1px;
  width: 0;
  right: 0;
  bottom: -0.3rem;
  transition: 0.4s;
}

.account-section-grid>p>a:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

.account-section-grid>h2,
.account-section-grid>p {
  text-align: center;
}

.signup-form,
.login-form {
  width: 100%;
  padding: 2rem 2rem;
}

.entryarea {
  position: relative;
  height: 4rem;
  width: 100%;
  font: var(--font-family-para);
  font-size: var(--font-size-xsm);
  letter-spacing: 1px;
  margin-block: 2rem;
}

.entryarea input {
  position: absolute;
  background: transparent;
  border: 1px solid var(--primary-accent-color);
  outline: none;
  padding: 0.5rem 1rem;
  width: 100%;
  height: 4rem;
  font: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: 0.1s ease;
  z-index: 50;
}

.entryarea .labelline {
  position: absolute;
  color: var(--primary-accent-color);
  background-color: var(--light-color-darkbg);
  font: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  margin: 1rem 1.5rem;
  transition: 0.2s ease;
}

.entryarea input:focus,
.entryarea input:valid {
  color: var(--primary-accent-color);
}

.entryarea input:focus+.labelline,
.entryarea input:valid+.labelline {
  color: var(--primary-accent-color);
  transform: translate(-2rem, -2rem) scale(0.8);
  padding: 0 1rem;
  z-index: 50;
}

.entryarea>p {
  position: absolute;
  top: -2.5rem;
}

.account-btn {
  width: 50%;
  height: 4rem;
  margin-inline: auto;
  font: var(--font-family-para);
  font-size: var(--font-size-xsm);
  color: var(--light-color-darkbg);
  background-color: var(--primary-accent-color);
  position: relative;
  z-index: 48;
}

.login-btn::before {
  content: "Sign In";
  position: absolute;
  z-index: 50;
}

.signup-btn::before {
  content: "Sign Up";
  position: absolute;
  z-index: 50;
}

.signout-btn::before {
  content: "Sign Out";
  position: absolute;
  z-index: 50;
}

.veriify-otp-btn::before {
  content: "Verify OTP";
  position: absolute;
  z-index: 50;
}

.account-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #149044;
  opacity: 0.4;
  transition: width 0.2s ease-out;
  z-index: 49;
}

.account-btn:hover::after {
  width: 100%;
}

.otp-area {
  display: none;
}

.logged-in-section {
  display: none;
  margin-inline: auto;
  padding: 0 2rem;
}

.logged-in-section .section-header {
  display: block;
}

.logged-in-section>:is(h2, p) {
  margin-block: 0 1rem;
  margin-inline: 0;
}

.logged-in-section>a {
  display: block;
  font-size: var(--font-size-xsm);
  text-decoration: underline;
  margin-bottom: 2rem;
  cursor: pointer;
}

.edit-section {
  display: none;
  margin-bottom: 2rem;
}

.edit-section>a {
  font-size: var(--font-size-xsm);
  text-decoration: underline;
  cursor: pointer;
}