:root {
  --primary: #2196F3;
}

body {
  font-family: "Open Sans", sans-serif;
  height: 100vh;
  background: rgb(2, 0, 36);
  background: linear-gradient(
    201deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(246, 246, 252, 1) 0%,
    rgba(150, 233, 253, 1) 100%,
    rgba(0, 212, 255, 1) 100%
  );
}

@keyframes spinner {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(359deg);
  }
}

* {
  box-sizing: border-box;
}

.wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 20px;
}

.login {
  border-radius: 2px 2px 5px 5px;
  padding: 10px 20px 20px 20px;
  width: 90%;
  max-width: 320px;
  background: #ffffff;
  position: relative;
  padding-bottom: 80px;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
}

.login.loading button {
  max-height: 100%;
  padding-top: 50px;
}

.login.loading .spinner {
  opacity: 1;
  top: 40%;
}

.login.ok button {
  background-color: #8bc34a;
}

.login.ok .spinner {
  border-radius: 0;
  border-top-color: transparent;
  border-right-color: transparent;
  height: 20px;
  animation: none;
  transform: rotateZ(-45deg);
}

.login input {
  display: block;
  padding: 15px 10px;
  margin-bottom: 10px;
  width: 100%;
  border: 1px solid #ddd;
  transition: border-width 0.2s ease;
  border-radius: 2px;
  color: #ccc;
}

.login input + i.bi {
  color: #fff;
  font-size: 1em;
  position: absolute;
  margin-top: -47px;
  opacity: 0;
  left: 0;
  transition: all 0.1s ease-in;
}

.login input:focus + i.bi {
  opacity: 1;
  left: 30px;
  transition: all 0.25s ease-out;
}

.login input:focus {
  outline: none;
  color: #444;
  border-color: var(--primary);
  border-left-width: 35px;
}

.login a {
  font-size: 0.8em;
  color: var(--primary);
  text-decoration: none;
}

.login .title {
  color: #444;
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0 30px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.login button {
  width: 100%;
  height: 100%;
  padding: 10px 10px;
  background: var(--primary);
  color: #fff;
  display: block;
  border: none;
  margin-top: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
  max-height: 60px;
  border: 0px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 0 2px 2px;
  transform: rotateZ(0deg);
  transition: all 0.1s ease-out;
  border-bottom-width: 7px;
}

/* Hover effect for the button */
.login button:hover {
  background: #2196f3;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.logo-container img {
  margin-bottom: 10px;
  display: flex;
  margin-left: 60px;
}

footer {
  display: block;
  padding-top: 50px;
  text-align: center;
  color: #000000;
  font-weight: bold;
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
  font-size: 0.8em;
}


/* ================================
   DARK MODE STYLES START HERE
================================== */

[data-theme="dark"] body {
  background: linear-gradient(
    201deg,
    rgb(100, 151, 199) 0%,
    rgb(35, 85, 150) 75%,
    #105da5 100%
  );
}

[data-theme="dark"] .login {
  background: #363636;
  box-shadow: 0px 2px 6px rgba(255, 255, 255, 0.1);
}




[data-theme="dark"] .login h6,
[data-theme="dark"] .login .title {
  color: #f5f5f5;
  border-bottom: 1px solid #444;
}

[data-theme="dark"] .login a {
  color: #80bdff;
}

[data-theme="dark"] .login button {
  background-color: var(--primary);
  color: #fff;
}

[data-theme="dark"] footer {
  color: #cccccc;
  text-shadow: none;
}

/* Optional: Smooth transitions */
body,
.login,
.login input,
.login button,
footer {
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

[data-theme="dark"] .login input {
  display: block;
  padding: 15px 10px;
  margin-bottom: 10px;
  width: 100%;
  border: 1px solid #494949;
  transition: border-width 0.2s ease;
  border-radius: 2px;
  color: #ffffff;
  background-color: #4e4e4e;
}

[data-theme="dark"] .login input + i.bi {
  color: #fff;
  font-size: 1em;
  position: absolute;
  margin-top: -47px;
  opacity: 0;
  left: 0;
  transition: all 0.1s ease-in;
}

[data-theme="dark"] .login input:focus + i.bi {
  opacity: 1;
  left: 30px;
  transition: all 0.25s ease-out;
}

[data-theme="dark"] .login input:focus {
  outline: none;
  color: #ffffff;
  border-color: var(--primary);
  border-left-width: 35px;
}