/* Overall body styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #fffde4, #fff);
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

/* Login container */
.login-container {
  background-color: #fff;
  max-width: 400px;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-top: 6px solid #000000; /* Black top border */
  text-align: center;
  width: 90%;
}

/* Logo styling */
.login-logo {
  max-width: 400px; /* Adjust the size as necessary */
  margin-bottom: 1.5em;
}

/* Heading */
h2 {
  color: #000000; /* Black */
  margin-bottom: 1.5em;
  font-size: 1.5rem;
}

/* Form styling */
.form-group {
  margin-bottom: 1.5em;
}

label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #002147; /* Navy */
  font-size: 1rem;
}

input {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

input:focus {
  border-color: #ffde34; /* Orange */
  outline: none;
}

/* Button styling */
.btn {
  background-color: #ffde34; /* Orange */
  color: black;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1em;
  width: 100%;
}

.btn:hover {
  background-color: #c6ad2f; /* Darker orange */
}

/* Alert messages */
.alert {
  margin: 1em 0;
  padding: 1em;
  border-radius: 8px;
  text-align: left;
}

.alert.success {
  background-color: #e7f4e7;
  color: #3c763d;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Ensures the container fits on smaller screens */
  .login-container {
    width: 100%;
    padding: 1.5em;
  }

  /* Adjust font sizes for mobile */
  h2 {
    font-size: 1.3rem;
  }

  label {
    font-size: 0.9rem;
  }

  input {
    padding: 0.7em;
  }

  .btn {
    padding: 0.7em 1.2em;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  /* Further reduce padding and adjust font sizes for extra small screens */
  .login-container {
    padding: 1em;
  }

  h2 {
    font-size: 1.2rem;
  }

  label {
    font-size: 0.85rem;
  }

  input {
    padding: 0.6em;
  }

  .btn {
    padding: 0.6em 1em;
    font-size: 0.85em;
  }
}

/* Position the face logo with overlap */
.face-logo {
  position: absolute;
  top: -111px; /* This positions the line at 111px from the top of the container */
  left: 50%;
  transform: translateX(-50%); /* Centers the face logo horizontally */
  height: 138px; /* Keeps the face logo at its natural height */
  z-index: 1; /* Ensures it sits above other elements */
}

/* Additional styling adjustments for login-container */
.login-container {
  position: relative; /* Enables absolute positioning for child elements */
  background-color: #fff;
  max-width: 400px;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-top: 6px solid #000000; /* Black top border */
  text-align: center;
  width: 90%;
}

/* Root Variables */
:root {
    --color-black: #070707;
    --color-yellow: #FFDE34;
    --color-white: #FFFFFF;
    --font-avenir: 'Avenir LT Pro', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

/* Overall body styling */
body {
  font-family: var(--font-avenir);
  background: linear-gradient(to bottom, #fffde4, #fff);
  color: var(--color-black);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

/* Login container */
.login-container {
  background-color: var(--color-white);
  max-width: 400px;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-top: 6px solid var(--color-black);
  text-align: center;
  width: 90%;
  margin-bottom: 2em;
}

/* Footer Section Styling */
.footer {
    font-family: var(--font-avenir);
    color: var(--color-black);
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.footer-links p {
    margin: 0;
    font-weight: bold;
}

.footer-link {
    color: var(--color-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Socials Follow Text */
.social-follow {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 0.5em;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1em;
}

.social-icon {
    width: 24px;
    height: 24px;
    background-size: cover;
    display: inline-block;
}

.instagram {
    background-image: url('/static/icons/instagram-icon.png');
}

.tiktok {
    background-image: url('/static/icons/tiktok-icon.png');
}

.youtube {
    background-image: url('/static/icons/youtube-icon.png');
}

.linkedin {
    background-image: url('/static/icons/linkedin-icon.png');
}

/* Optional Hover Effect for Social Icons */
.social-icon:hover {
    filter: brightness(1.2);
}

/* Position the face logo with overlap */
.face-logo {
  position: absolute;
  top: -111px;
  left: 50%;
  transform: translateX(-50%);
  height: 138px;
  z-index: 1;
}
