@layer components {

  html,
  body {
    min-block-size: 100dvh;
    color: #ffffff;
  }

  .bg-map-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  #bg-pelni-map {
    inline-size: 100%;
    block-size: 100%;
    background: #081830;
  }

  .bg-map-layer .leaflet-control-attribution,
  .bg-map-layer .leaflet-control-zoom {
    display: none !important;
  }

  .bg-map-gradient {
    position: fixed;
    inset: 0;
    block-size: 100lvh;
    z-index: 1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: linear-gradient(145deg, rgba(4, 4, 71, 0) 0%, rgba(4, 4, 71, 0) 50%, rgba(4, 4, 71, 0.78) 76%, #040447 100%);
  }

  .login-container {
    position: relative;
    z-index: 2;
    inline-size: 100%;
    max-inline-size: 440px;
    min-block-size: 100dvh;
    margin-inline: auto;
    padding: calc(36px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
  }

  .login-logo {
    width: 146px;
    height: auto;
    display: block;
    overflow: visible;
    cursor: pointer;
  }

  .login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 22px;
  }

  .login-tab {
    border: 0;
    background: transparent;
    padding: 11px 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.56);
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease;
  }

  .login-tab.is-active {
    color: #ffffff;
    border-bottom-color: #ffffff;
  }

  .login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .login-role-switch {
    position: relative;
    width: 100%;
    height: 46px;
    margin-top: 0px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .login-role-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: rgb(255 255 255 / 20%);
    box-shadow: 0 4px 12px rgba(4, 4, 71, 0.22);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .login-role-switch.is-crew .login-role-thumb {
    transform: translateX(100%);
  }

  .login-role-option {
    position: relative;
    z-index: 1;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: color 200ms ease;
  }

  .login-role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
  }

  .login-role-option.is-active {
    color: #ffffff;
    font-weight: 600;
  }

  .login-divider--plain {
    margin: 18px 0 10px;
  }

  .login-divider--plain::before,
  .login-divider--plain::after {
    display: none;
  }

  .login-divider[hidden],
  .login-role-switch[hidden] {
    display: none;
  }

  .login-form[hidden] {
    display: none;
  }

  .login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .login-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
  }

  .login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 150ms ease, background-color 150ms ease;
  }

  .login-input-wrap:focus-within {
    border-color: #05fddd;
    background: rgba(255, 255, 255, 0.12);
  }

  .login-input-ico {
    position: absolute;
    left: 14px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.62);
    pointer-events: none;
  }

  .login-input-wrap input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 42px 0 42px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
  }

  .login-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.48);
  }

  .login-eye-btn {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .login-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
  }

  .login-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    cursor: pointer;
  }

  .login-feedback {
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background: rgba(5, 253, 221, 0.14);
    color: #05fddd;
    border: 1px solid rgba(5, 253, 221, 0.35);
  }

  .login-feedback.is-error {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.45);
  }

  .login-feedback[hidden] {
    display: none;
  }

  .login-submit-btn {
    margin-top: 4px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    color: #040447;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: transform 140ms ease;
  }

  .login-submit-btn:active {
    transform: scale(0.985);
  }

  .login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 16px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
  }

  .login-divider::before,
  .login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
  }

  .login-social-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .login-social-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
  }

  .login-social-btn i {
    font-size: 18px;
    font-weight: 400;
  }

  .login-bottom-switch {
    margin: 22px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
  }

  .login-bottom-switch button {
    border: 0;
    background: transparent;
    padding: 0 2px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
  }
}