/*!
 * VILLAGE v0.0.3 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@charset "UTF-8";

/* ¯¯¯¯¯¯¯¯¯ *\
  Password
\* ˍˍˍˍˍˍˍˍˍ */
.village-password {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  --text-spacing: 0 0 0.5rem 0;
}

.village-password [data-village-capslock] .village-password__input {
  padding-right: 3rem;
}

.village-password [data-village-capslock]::before {
  content: "";
  display: block;
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  --data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23161616' d='M22.668 0C23.4023 0 24 .5977 24 1.332v21.336c0 .7343-.5977 1.332-1.332 1.332H1.332C.5977 24 0 23.4023 0 22.668V1.332C0 .5977.5977 0 1.332 0Zm-1.336 2.668H2.668v18.664h18.664Zm-4.664 12.664V18H7.332v-2.668ZM12 5.332 16.668 10H14v3.332h-4V10H7.332Zm0 0'/></svg>");
  background-image: var(--data-uri-svg);
}

.village-password__checkbox {
  order: -1;
  flex: 0;
  align-self: flex-end;
  margin-left: auto;
  padding-left: 0.5rem;
}

.village-password__checkbox .village-label {
  text-wrap: nowrap;
}

.village-password .village-input-wrap {
  flex: 1 0 100%;
}

.village-password__input {
  margin-bottom: 0.75rem;
}

.village-password__input::-webkit-caps-lock-indicator {
  content: none;
}

.village-password__input::-ms-reveal {
  display: none;
}

.village-password > .village-label {
  order: -1;
  flex: 1;
  min-width: 50%;
}

.village-password .village-message:first-child {
  --comma: " ";
}

.village-password .village-message--valid[data-village-valid] {
  --content: " - "attr(data-village-valid) var(--comma);
}

.village-password .village-message--error[data-village-error] {
  --content: " - "attr(data-village-error) var(--comma);
}

.village-password__btn {
  background-color: transparent;

  --hover: inherit;
  --active: inherit;
  color: var(--text-action-high-village-primary);
}

.village-password__btn:disabled,
a.village-password__btn:not([href]) {
  color: var(--text-disabled-grey);
  background-color: transparent;

  --hover: inherit;
  --active: inherit;
}

:root[data-village-theme=dark] .village-password [data-village-capslock]::before {
  --data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M22.668 0C23.4023 0 24 .5977 24 1.332v21.336c0 .7343-.5977 1.332-1.332 1.332H1.332C.5977 24 0 23.4023 0 22.668V1.332C0 .5977.5977 0 1.332 0Zm-1.336 2.668H2.668v18.664h18.664Zm-4.664 12.664V18H7.332v-2.668ZM12 5.332 16.668 10H14v3.332h-4V10H7.332Zm0 0'/></svg>");
}

.village-password .village-password__checkbox input[type=checkbox] + label {
  color: var(--text-label-grey);
}

.village-password .village-password__checkbox input[type=checkbox] + label::before {
  background-image: radial-gradient(at 5px 4px, transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), radial-gradient(at calc(100% - 5px) 4px, transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), radial-gradient(at calc(100% - 5px) calc(100% - 4px), transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), radial-gradient(at 5px calc(100% - 4px), transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), var(--data-uri-svg);
}
@media (min-width: 36em) {
  /*! media sm */

  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */

  /*! media md */
}
@media (min-width: 62em) {
  /*! media lg */

  /*! media lg */
}
@media (min-width: 78em) {
  /*! media xl */

  /*! media xl */
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .village-password__checkbox {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }

  .village-password__checkbox input[type=checkbox] {
    top: -0.5rem;
  }

  .village-password__btn {
    background-color: transparent;
    color: hsl(180, 75%, 25%);
  }

  .village-password__btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .village-password__btn:active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .village-password__btn:disabled,
  a.village-password__btn:not([href]) {
    color: #929292;
    background-color: transparent;
  }

  .village-password__btn:disabled:hover,
  a.village-password__btn:not([href]):hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .village-password__btn:disabled:active,
  a.village-password__btn:not([href]):active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .village-password [data-village-capslock]::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161616' d='M22.668 0C23.4023 0 24 .5977 24 1.332v21.336c0 .7343-.5977 1.332-1.332 1.332H1.332C.5977 24 0 23.4023 0 22.668V1.332C0 .5977.5977 0 1.332 0Zm-1.336 2.668H2.668v18.664h18.664Zm-4.664 12.664V18H7.332v-2.668ZM12 5.332 16.668 10H14v3.332h-4V10H7.332Zm0 0'/%3E%3C/svg%3E");
  }

  .village-password .village-password__checkbox input[type=checkbox] + label {
    color: #161616;
  }
}
@media print {
  .village-password__btn {
    color: hsl(180, 75%, 25%);
  }

  .village-password__btn:disabled,
  a.village-password__btn:not([href]) {
    color: #929292;
  }

  .village-password .village-password__checkbox input[type=checkbox] + label {
    color: #161616;
  }

  .village-password .village-password__checkbox input[type=checkbox] + label::before {
    background-image: radial-gradient(at 5px 4px, transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), radial-gradient(at calc(100% - 5px) 4px, transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), radial-gradient(at calc(100% - 5px) calc(100% - 4px), transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), radial-gradient(at 5px calc(100% - 4px), transparent 4px, var(--border-action-high-village-primary) 4px, var(--border-action-high-village-primary) 5px, transparent 6px), linear-gradient(var(--border-action-high-village-primary), var(--border-action-high-village-primary)), var(--data-uri-svg);
  }
}
@media print and (-ms-high-contrast: none), print and (-ms-high-contrast: active) {
  .village-password__btn {
    background-color: transparent;
  }

  .village-password__btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .village-password__btn:active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .village-password__btn:disabled,
  a.village-password__btn:not([href]) {
    background-color: transparent;
  }

  .village-password__btn:disabled:hover,
  a.village-password__btn:not([href]):hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .village-password__btn:disabled:active,
  a.village-password__btn:not([href]):active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .village-password [data-village-capslock]::before {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161616' d='M22.668 0C23.4023 0 24 .5977 24 1.332v21.336c0 .7343-.5977 1.332-1.332 1.332H1.332C.5977 24 0 23.4023 0 22.668V1.332C0 .5977.5977 0 1.332 0Zm-1.336 2.668H2.668v18.664h18.664Zm-4.664 12.664V18H7.332v-2.668ZM12 5.332 16.668 10H14v3.332h-4V10H7.332Zm0 0'/%3E%3C/svg%3E");
  }
}
