/* Login screen styling. */
/* © 2023 ToasterPanic   */

@import "/assets/styles/vars.less";

body {
  margin: 0;
  padding: 0;
  font-family: Handwritingg, cursive;
  font-size: 17px;
  background: url(/assets/images/backgrounds/mountains.svg), linear-gradient(#caccff, #000, #caccff);
  background-position-y: 0;
  background-repeat: repeat-x;
  background-size: auto 150vh, 200%;
  background-color: @blk;
}

.content {
  width: 100%;
  max-width: 520px;
  position: relative;
  left: 50vw;
  min-height: 100vh;
  transform: translateX(-50%);
  text-align: center;
  background-color: @ui-background-color;
  filter: drop-shadow(0 0 4px @button-outline-color);
  font-family: BadHandwriting, Handwritingg, Comic Sans MS, Comic Sans, cursive;
  color: @wht;
}

h1 {
  margin-top: 0;
  padding-top: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: Handwritingg, Comic Sans MS, Comic Sans, cursive;
}

btn,
input {
  background-color: @button-color;
  filter: drop-shadow(0 0 4px @button-outline-color);
  font-size: 32px;
  color: @wht;
  padding: 2px 4px;
  border-radius: 9px;
  transition: 0.2s;

  font-family: Handwritingg, cursive;
}

btn:hover {
  background-color: @button-color-hover;
  cursor: pointer;
  transition: 0.2s;
}

btn[disabled] {
  background-color: @button-color-disabled !important;
  cursor: not-allowed;
  pointer-events: none;
  transition: 0.2s;
}

.error {
  color: red;
}

input {
  font-family: BadHandwriting, Comic Sans MS, Comic Sans, cursive;
  font-size: 27px;
  outline: none;
  border: none;
  margin-bottom: 3px;

  &:invalid {
    background-color: @button-invalid;

    &:focus {
      background-color: @button-invalid-hover;
    }
  }

  &:focus {
    background-color: @button-color-hover;
  }

  &::placeholder {
    color: @input-placeholder-color;
    opacity: 1;
  }
}

a:link {
  color: @accent-color-1
}

a:hover {
  color: @button-color-hover
}

a:visited {
  color: @accent-color-1
}