

.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;
}
