@font-face {font-family: SF Display; font-weight: bold; src: url('font/SFUIDisplay-Bold.ttf');}
@font-face {font-family: SF Display; font-weight: 300; src: url('font/SFUIDisplay-Light.ttf');}
@font-face {font-family: SF Display; font-weight: 200; src: url('font/SFUIDisplay-Thin.ttf');}
@font-face {font-family: SF Display; font-weight: 100; src: url('font/SFUIDisplay-Ultralight.ttf');}

/* Center content */

body.auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fff;
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  color: #333;
  margin: 0;
}

/* --- Logo in Header --- */
.logo img {
  height: 44px; /* Big enough but not too big */
  width: 300;
  display: inline-block;
  margin: 0 auto;
}

hr {height: 1px; background-color: #ccc; border: none;} 

h2 {font-family: SF Display, San Francisco, Helvetica, sans-serif; color: #999;}

/* ------------- BUTTONS ---------------*/
.button {
  font-family: SF Display, San Francisco, Helvetica, sans-serif;
  background-color: #3366cc;
  color: #fff;
  padding: 6px 20px;
  border: 1px solid #ccc;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 16px;
  text-decoration: none;
}

.button.button1 {background: #333; color: #fff; border: 1px solid #f5f5f5; text-decoration: none;}
.button.button1:hover {background: #3366cc; color: #fff; border: 1px solid #ccc; text-decoration: none;}
.button.button1:active {background: #ccc; color: #fff; border: 1px solid #ccc; text-decoration: none;}

.button.button2 {background: #333; color: #fff; border: 1px solid #f5f5f5; text-decoration: none;}
.button.button2:hover {background: #3366cc; color: #fff; border: 1px solid #ccc; text-decoration: none;}
.button.button2:active {background: #ccc; color: #fff; border: 1px solid #ccc; text-decoration: none;}


/* Auth container */
.auth-container {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  background: #fff;
  width: 100%;
  max-width: 400px;
  padding: 30px;
/*  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  border: 1px solid #ccc;
  border-radius: 15px;
  box-sizing: border-box;
  text-align: center;
  margin-top: -70px;
}

/* Inputs */
.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
  width: 100%;
  margin: 12px 0;
  padding: 8px 4px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 1rem;
}

.auth-container input:focus {
  outline: none;
  border-bottom: 1px solid #3366cc;
}

/* Button */
.auth-container button {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  display: block;
  width: 100%;
  margin-top: 20px;
}

/* Headings */
.auth-container h2 {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  color: #999;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Inputs */
.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
  width: 100%;
  margin: 12px 0;
  padding: 8px 4px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 1rem;
}

.auth-container input:focus {
  outline: none;
  border-bottom: 1px solid #3366cc;
}

/* Button */
.auth-container button {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  display: block;
  width: 100%;
  margin-top: 20px;
}

/* Switch link (register <-> login) */
.switch-link {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  display: block;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #333;
}

.switch-link a {
  color: #333;
  text-decoration: none;
}

.switch-link a:hover {
  color: #3366cc;
  text-decoration: underline;
}

/* Switch link (register <-> login) */
.switch-link {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  display: block;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #333;
}

.switch-link a {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.switch-link a:hover {
  font-family: SF Display, Calibri, Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #3366cc;
  text-decoration: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 10px;
}

.auth-header .logo {
  height: 44px; 
  width: auto;
  display: inline-block;
  padding-bottom: 30px;
}

/* Fade-in animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apply to the main content container */
.auth-container {
  animation: fadeIn 0.4s ease-out; /* quick fade */
}

.auth-header {
  animation: fadeIn 0.4s ease-out;
}

/* ---------------- Footer ---------------- */
#footer {
  all: unset;
  font-family: SF Display, San Francisco, Helvetica, Calibri, Arial, sans-serif;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-height, 50px);
  background: #f5f5f5;
  color: #333;
  border-top: 1px solid #ccc;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  font-size: 14px !important;
  z-index: 1000;
  box-sizing: border-box;
}

#footer p {
  padding-left: 20px !important;
  margin: 0 !important;
}

.footer-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  height: 100% !important;
  box-sizing: border-box;
}

.footer-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  padding: 0 15px !important;
  margin: 0 !important;
  background-color: #f5f5f5 !important;
  color: #333 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background-color 0.2s ease;
  flex: 0 0 auto !important; 
}

.footer-links a:hover {
  background-color: #e5e5e5 !important;
  color: #3366cc !important;
}
