/* Combined Index + Homestyle CSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease-in;
}
h1 {
  font-size: 3.5rem;
  margin: 0.5em 0;
  line-height: 1.2;
}
main {
  display: flex;
  flex: 1;
}
.split {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  font-size: 24px;
  font-weight: bold;
}
.left {
  background-color: #B2140E;
  color: #FFFFFF;
  animation: slideInLeft 1s ease;
}
.right {
  background-color: #FFFFFF;
  color: #B2140E;
  animation: slideInRight 1s ease;
}
.cta {
  margin-top: 20px;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 18px;
  border-radius: 20px;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.cta.left {
  background-color: #B2140E;
  border: 2px solid #fff;
  color: #fff;
  transition: all 0.4s ease-in-out;
}
.cta.right {
  background-color: #FFFFFF;
  border: 2px solid #B2140E;
  color: #B2140E;
  transition: all 0.4s ease-in-out;
}
.cta.left:hover {
  background-color: #fff;
  color: #B2140E;
  transform: scale(1.05);
}
.cta.right:hover {
  background-color: #B2140E;
  color: #fff;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .split {
    width: 100%;
    height: auto;
    padding: 60px 20px;
    font-size: 20px;
  }
  #logoutBtn {
    padding: 8px 16px;
    font-size: 10px;
    border-radius: 15px;
  }
}
.split {
  width: 100%;
  height: auto;
  padding: 60px 20px;
  font-size: 20px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
  to { opacity: 1; }
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.auth-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeModalIn 0.4s ease forwards;
}
.auth-modal.hidden {
  animation: fadeModalOut 0.4s ease forwards;
}
@keyframes fadeModalIn {
  from { opacity: 0; transform: scale(0.95) }
  to { opacity: 1; transform: scale(1) }
}
@keyframes fadeModalOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}
.auth-box {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.auth-box .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.auth-box.synr {
  border-top: 6px solid #B2140E;
  background-color: #fff;
  color: #B2140E;
}
.auth-box.synr .close-btn {
  color: #fff;
}
.auth-box.synr .close-btn:hover {
  background-color: #FFFFFF;
  color: #B2140E;
}
.auth-box.saynt {
  border-top: 6px solid #fff;
  background-color: #B2140E;
  color: white;
}
.auth-box.saynt .close-btn {
  color: #B2140E;
}
.auth-box.saynt .close-btn:hover {
  background-color: #B2140E;
  color: #fff;
}
.auth-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.auth-box button {
  width: 100%;
  padding: 5px;
  border: none;
  border-radius: 8px;
  font-size: 20px;
}
.auth-box.synr button {
  background-color: #B2140E;
  color: #fff;
}
.auth-box.synr button:hover {
  background-color: #FFFFFF;
  color: #B2140E;
}
.auth-box.saynt button {
  background-color: #fff;
  color: #B2140E;
}
.auth-box.saynt button:hover {
  background-color: #B2140E;
  color: #fff;
}
#authStatus {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}
#logoutBtn {
  padding: 5px 8px;
  font-weight: bold;
  border: 2px solid #B2140E;
  border-radius: 20px;
  background-color: #fff;
  color: #B2140E;
  cursor: pointer;
  display: none;
  transition: all 0.4s ease-in-out;
}
#logoutBtn:hover {
  background-color: #B2140E;
  color: #fff;
  border-color: #B2140E;
  transform: scale(1.05);
}
#userEmail {
  margin-right: 5px;
}
.hidden { display: none; }
