@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

:root {
  --primary-color: #0583D2;
  --secondary-color: #0267A0;
  --background-gradient: linear-gradient(to right, #0583D2, #0267A0);
  --white: #fff;
  --black: #000;
  --gray: grey;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  --transition: 0.3s ease-in-out;
  --border-radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Fredoka One', cursive;
}

body {
  min-height: 100vh;
  background-image: url('../images/pic4.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  font-size: 2.2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

p {
  margin: 1.5rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--black);
  line-height: 0.1em;
}

p span {
  background: var(--white);
  padding: 0 10px;
  color: var(--gray);
}

input {
  margin-bottom: 1rem;
  padding: 0.85rem;
  width: 100%;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(5, 131, 210, 0.5);
}

button {
  padding: 0.85rem;
  width: 100%;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: bold;
  text-transform: uppercase;
}

button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

#submit, #create-acct-btn {
  background: var(--background-gradient);
  color: var(--white);
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

#submit:hover, #create-acct-btn:hover {
  box-shadow: 0 12px 24px rgba(5, 131, 210, 0.4);
}

#sign-up, #return-btn {
  background: none;
  color: var(--primary-color);
  text-decoration: underline;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: var(--transition);
}

#sign-up:hover, #return-btn:hover {
  color: var(--secondary-color);
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 420px;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

#create-acct {
  display: none;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
