

.dark {
--bg-color: #34393e;
--text-color: #d3d3d4;

--light-color: #41484e;
--dark-color: #2e3236;
--darker-color: #1c1f22;

}



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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  color: var(--text-color);
}
container {
  height: 130VW;
  width: 100vw;
  overflow: hidden;

  display: flex;
  justify-content: center;

  background: var(--bg-color);
  transition: var(--transition-some);
}



.card_logo {
  background: url("imgs/logo.png");
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  margin: 0 auto;
  box-shadow: 
    /* offset */ 0px 0px 0px 5px var(--bg-color),
    /*bottom right */ 8px 8px 15px var(--darker-color),
    /* top left */ -8px -8px 15px var(--light-color);
  transition: var(--transition-some);
}

.card_title {
  text-align: center;
  font-size: 28px;
  padding-top: 24px;
  letter-spacing: 0.5px;
}
.card_sub-title {
  text-align: center;
  font-size: 15px;
  padding-top: 7px;
  letter-spacing: 2px;
  opacity: 0.75;
}

.card_form .fields {
  width: 100%;
  padding: 75px 5px 5px 5px;
}
.card_form .fields input {
  border: none;
  outline: none;
  background: none;
  font-size: 18px;
  color: var(--text-color);
  padding: 20px 10px 20px 5px;
}
.username,
.password {
  margin-bottom: 30px;
  border-radius: 25px;
  box-shadow: inset 8px 8px 8px var(--dark-color),
    inset -8px -8px 8px var(--light-color);
  transition: var(--transition-some);
}

.card_form .fields svg {
  height: 22px;
  margin: 0 10px -3px 25px;
}

.btn {
  outline: none;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 60px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  color: var(--white-color);
  text-align: center;
  background: var(--violet-color);
  background: linear-gradient(
    to right bottom,
    var(--pink-color),
    var(--violet-color)
  );
  box-shadow: 5px 5px 10px var(--darker-color),
    -5px -5px 10px var(--light-color);
  transition: var(--transition-some);
}
.btn:hover {
  background: var(--pink-color);
  background: linear-gradient(
    to right bottom,
    var(--pink-color),
    var(--pink-color)
  );

  box-shadow: 0px 0px 25px 5px rgba(255, 0, 170, 0.4);
}
.btn:active {
  background: var(--pink-color);
  background: linear-gradient(
    to right bottom,
    var(--violet-color),
    var(--violet-color)
  );

  box-shadow: 0px 0px 25px 5px rgba(113, 8, 166, 0.4);
}
.card .link {
  padding-top: 20px;
  text-align: center;
}
.card .link a {
  text-decoration: none;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 15px;
}

.toggle {
  position: fixed;
  top: 30px;
  left: 30px;

  width: 150px;
  height: 70px;
  border-radius: 50px;
  border: 0.1px solid var(--light-color);
  background-color: var(--bg-color);
  box-shadow: inset 10px 10px 15px var(--darker-color),
    inset -10px -10px 15px var(--light-color);
}

.toggle label {
  width: 70px;
  height: 70px;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.toggle-icon {
  background-image: url("imgs/sun.svg");
  width: 50px;
  height: 50px;
  margin: 10px;
  display: inline-block;
  border-radius: 100px;
  pointer-events: none;
  position: relative;
  transition: var(--transition-all);

  box-shadow: 
    /* offset */ 0px 0px 0px 3px var(--bg-color),
    /*bottom right */ 4px 4px 7px var(--darker-color),
    /* top left */ -4px -4px 7px var(--light-color);
}

.toggle-icon .icon {
  position: absolute;
  top: 0;
  left: 0;
  transition: var(--transition-all);
}

.toggle-icon .moon {
  opacity: 0;
}

.toggle input {
  opacity: 0.3;
  width: 150px;
  height: 70px;
  opacity: 0;
  cursor: pointer;
}
 
.toggle input:checked + label .toggle-icon {
  transform: translateX(80px) rotate(360deg);
}

.toggle input:checked + label .icon.moon {
  opacity: 1;
}
.toggle input:checked + label .icon.sun {
  opacity: 0;
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4),
              0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 320px;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: "Roboto", sans-serif;
  letter-spacing: 0.3px;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification.hide {
  transform: translateX(-50%) translateY(-100px);
  opacity: 0;
}

.toast-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (max-width: 768px) {
  .toast-notification {
    min-width: 280px;
    padding: 14px 20px;
    font-size: 15px;
  }
}