:root {
  --red: #A41F13;
  --bg-light: #F7F8FD;
  --neutral-light: #E0DBD8;
  --text-light: #0D1732;
  --accent-light: #0D1732;
  --bg-dark: #1E242B;
  --neutral-dark: #323741;
  --text-dark: #FFFFFF;
  --accent-dark: #0473FF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background-color: var(--bg-light);

}



.dark .container {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}
.dark .topcolorbar , .dark body , html.dark  {
  background-color: var(--bg-dark);
}
.dark .topbar .logo {
  background-image: url('../pictures/logo_dark.png');
}
.dark .copyright {
  color: var(--text-dark);
}
.dark .center-section {
  background-color: var(--neutral-dark);
  box-shadow: 0px 10px 27px rgba(0, 0, 0, 0.35);
  border: 2px solid #3C424B;
}
.dark .center-section0 {
  box-shadow: 0px 10px 27px rgba(0, 0, 0, 0.35);
}
.dark .button-divs {
  background-color: var(--neutral-dark);
}
.dark .selected {
  background-color: #CFCFCF;
  color: var(--bg-dark);
}
.dark .center-section input {
  background-color: #242732;
  color: var(--text-dark);
  border: 2px solid #3C424B;
}
.dark .center-section label {
  color: #4E545E;
}
.dark .center-section a {
  color: var(--text-dark);
}
.dark .center-section button {
  background-color: #0473FF;
}
.dark .with-buttons {
  background-color: #CFCFCF;
}
.dark .with-buttons:hover {
  background-color: #0473FF;
}
.dark .footer a {
  color: var(--text-dark);
}
.dark .footer div a:hover {
  text-shadow: 1px 2px 10px rgba(255, 255, 255, 0.7);
}
.dark .alert-close i {
  color: #DC2626;
}
.dark .alert-div {
  color: var(--text-dark);
}

.container {
  display: block;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: var(--bg-light);
}
.topcolorbar {
  width: 100%;
  height: 12px;
  background-color: #0D1732;
}
.topbar {
  width: 100%;
  height: 100px;
}
.topbar .logo {
  background-image: url('../pictures/logo.png');
  background-size: cover;
  width: 100px;
  height: 100px;
  margin-top: 2.5rem;
  margin-left: 4rem;
  cursor: pointer;
}
.copyright {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  color: var(--text-light);
  font-size: 0.8rem;
  user-select: none;
}
.footer {
  position: absolute;
  width: 100%;
  height: 60px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.footer div a {
  cursor: pointer;
  color: var(--text-light);
  text-decoration: none;
  user-select: none;
}
.footer div a:hover {
  text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.4);
}

.theme-switch-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ECEFF6;
  border: 1px solid #0D1732;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  transition: 0.4s;
  border-radius: 50%;
  background-color: #0D1732;
}
input:checked + .slider {
  background-color: #CFCFCF;
}
input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #1E242B;
}
.center-wrraper {
  display: flex;
  width: 100%;
  height: 70%;
  position: relative;
  justify-content: center;
  align-items: center;
  /*padding: 200px 0px 200px 0px;*/
  padding-bottom: 10%;
}
.center-section {
  position: relative;
  border-radius: 40px;
  box-shadow: 0px 4px 27px rgba(0, 0, 0, 0.25);
  width: 670px;
  height: 444px;
  margin-top: 22px;
  background-color: white;
}
.center-section0 {
  border-radius: 30px;
  box-shadow: 0px 4px 27px rgba(0, 0, 0, 0.25);
  width: 670px;
  height: 74px;
}
.wrapper1 {
  width: 670px;
}
.button-divs {
  width: 335px;
  height: 74px;
  text-align: center;
  cursor: pointer;
  font-size: 1.8rem;
  padding-top: 1.2rem;
  background-color: #ECEFF6;
  user-select: none;
}
#loginbtn-div {
  float: left;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  font-family: 'Sora', sans-serif;
}
#registerbtn-div {
  float: right;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  font-family: 'Sora', sans-serif;
}
.selected {
  background-color: white;
}

#register-container {
  display: none;
  width: 100%;
  height: 100%;
  padding-top: 60px;
  position: relative;
}
#login-container {
  position: relative;
  padding-top: 107px;
  width: 100%;
  height: 100%;
  display: none;
}

.login-form {
  width: 100%;
  height: 100%;
  text-align: center;
}
.input-container {
  position: relative;
  width: 22rem;
  margin: 0 auto 20px;
}
.center-section label {
  color: #CFCFCF;
  user-select: none;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  transition: all 0.25s ease;
  pointer-events: none;
  background-color: transparent;
}
.center-section input {
  font-size: 1.3rem;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  background-color: #ECEFF6;
  color: #0D1732;
}
.center-section input:focus {
  outline: none;
  box-shadow: 0 0 0 1px #0D1732;
}
.center-section input:focus + label,
.center-section input:not(:placeholder-shown) + label {
  top: 2px;
  font-size: 1.2rem;
  color: var(--accent-light);
  transform: translateY(-50%);
  background-color: #ECEFF6;
  padding: 0 4px;
  border-radius: 5px;
}


  .login-button-div  {
    margin-top: 42px;
  }






.dark .center-section input:focus + label,
.dark .center-section input:not(:placeholder-shown) + label {
  color: var(--text-dark);
  background-color: #242732;
}
.login-form input,
.register-form input {
  margin: 0;
}
.register-form label {
  font-size: 1.3rem;
}
.center-section button {
  background-color: #0D1732;
  color: white;
  padding: 12px 0;
  border: none;
  border-radius: 20px;
  font-size: 2rem;
  cursor: pointer;
  width: 12rem;
  margin-top: 11px;
}
.center-section button:hover {
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
}
.dark .center-section button:hover {
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.45);
}
.forgot-password {
  text-align: right;
  color: #0D1732;
  font-size: 1.15em;
  text-decoration: none;
}
.forgot-password:hover {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
}
.dark .forgot-password:hover {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}
.login-email-div,
.login-password-div,
.register-email-div,
.register-password-div,
.register-confirmpassword-div {
  height: 69px;
  display: flex;
  justify-content: center;
}
.login-forgot-div {
  height: 45px;
  text-align: right;
  position: relative;
}
.login-forgot-div a {
  position: absolute;
  bottom: 0px;
  right: 25px;
  user-select: none;
}
.register-button-div {
  text-align: center;
}

.x-close-button {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}
.x-close-button:hover {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
}
#login-with-buttons {
  width: 100%;
  height: 100%;
  text-align: center;
  padding-top: 80px;
}
#register-with-buttons {
  width: 100%;
  height: 100%;
  display: none;
  text-align: center;
  padding-top: 80px;
}
.with-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ECEFF6;
  color: #0D1732;
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #0D1732;
  height: 66px;
  width: 75%;
  margin: 0 auto;
  margin-bottom: 20px;
  user-select: none;
}
.with-buttons:hover {
  background-color: #0D1732;
  color: var(--text-dark);
}
.with-buttons svg {
  margin-right: 10px;
}
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 20px;
  font-weight: bold;
  width: 75%;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #CFCFCF;
}
.divider::before {
  margin-right: 10px;
}
.divider::after {
  margin-left: 10px;
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background-color: #F7F8FD;
  color: #0D1732;
  border: 1px solid #E0DBD8;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.95rem;
}
.cookie-banner a {
  color: #0473FF;
  text-decoration: underline;
}
#cookie-banner {
  display: none;
}
.cookie-button {
  background-color: #0D1732;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.cookie-button:hover {
  background-color: #0059cc;
}
.alert-div {
  display: none;
  position: absolute;
  width: 80%;
  min-height: 20px;
  border-radius: 20px;
  background-color: rgba(239, 68, 68, 0.25);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 10px 12px 10px 12px;
  color: var(--text-light);
  font-size: 0.8rem;
}
#alertl-div {
  top: 37px;
}
#alertr-div {
  top: 12px;
}
.alert-close {
  text-decoration: none;
  float: right;
  margin-left: 10px;
  cursor: pointer;
  color: #DC2626;
  font-weight: bold;
}

  /* The alert message box */
.main-alert {
  display: none;
  padding: 20px;
  min-height: 60px;
  background-color: rgba(220, 38, 38, 0.8); /* Red | #16A34A - success*/
  color: white;
  margin-bottom: 15px;
  border-radius: 15px;
  position: absolute;
  z-index: 1;
  width: 100%;
  top: -190px;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}
/* The close button */
.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}
/* When moving the mouse over the close button */
.closebtn:hover {
  color: black;
}

@media (max-width: 922px) {
  .footer {
    bottom: 50px;
  }
}
 
@media (max-width: 670px) {
  .center-section0 {
    width: 100%;
  }
  .button-divs {
    width: 50%;
  }
  .center-section {
    width: 100%;
  }
}
@media (max-width: 621px) {
  .login-form input,
  .register-form input {
    margin: 0;
  }
}
@media (max-width: 570px) {
  .center-section label {
    left: 20px;
  }
}
@media (max-width: 512px) {
  .login-form input,
  .register-form input {
    margin: 0 auto;
  }
  .input-container {
    width: 80%;
  }
  #login-container {
    padding-top: 60px;
  }


  .login-button-div  {
    margin-top: 50px;
  }


  .login-forgot-div {
    width: 100%;
  }
}
@media(max-width: 430px) {
  .footer {
  flex-direction: column;
  bottom: 130px;
  }
  
  .container {
    padding-bottom: 300px;
  }
}