#login {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 100dvh;
  min-width: 320px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #6562c6 url("/login-wallpaper.jpg?v=20261012ribbon1") center / cover no-repeat;
}
#login::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 14, 61, .05);
  transition: background .2s;
}
html[data-theme="dark"] #login::before { background: rgba(18, 14, 61, .38); }
#login .login-tools {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
#login .login-tools > * {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  background: rgba(235, 227, 255, .28);
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 12px rgba(47, 32, 108, .1);
}
#login .login-tools svg { width: 19px; height: 19px; }
#login .login-time {
  position: absolute;
  top: 8.2dvh;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, .92);
}
#loginDate { font-size: 23px; font-weight: 600; line-height: 32px; }
#loginClock {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 156px;
  font-weight: 400;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  margin-top: 16px;
}
#login .login-company {
  position: absolute;
  top: 45dvh;
  left: 50%;
  width: min(100% - 32px, 900px);
  padding: 0 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .94);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 7px rgba(40, 24, 101, .32);
  overflow-wrap: anywhere;
}
#login .ribbon-login-form {
  position: absolute;
  top: 56dvh;
  left: 50%;
  width: min(320px, calc(100% - 48px));
  margin: 0;
  transform: translateX(-50%);
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
}
#login .login-avatar {
  height: 92px;
  width: 92px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(83, 53, 160, .4);
  box-shadow: 0 5px 20px rgba(44, 26, 110, .22), inset 0 0 0 5px rgba(231, 209, 255, .12);
  backdrop-filter: blur(16px);
}
#login .login-avatar svg { width: 38px; height: 38px; stroke-width: 1.5; }
#login .login-avatar span { font-size: 13px; line-height: 20px; }
#login .ribbon-login-title {
  margin: 12px 0 16px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 5px rgba(40, 24, 101, .3);
}
#login .login-fields {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background: rgba(231, 213, 255, .55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 25px rgba(63, 29, 124, .18);
}
#login .login-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 14px;
  margin: 0;
  color: #58416f;
}
#login .login-field + .login-field { border-top: 1px solid rgba(108, 72, 163, .15); }
#login .login-field > svg { width: 15px; height: 15px; flex: none; stroke-width: 1.5; }
#login .login-field input {
  min-width: 0;
  min-height: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #3d2856;
  background: transparent;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}
#login .login-field input::placeholder { color: #604777; opacity: 1; }
#login .login-field:focus-within { background: rgba(255, 255, 255, .18); }
#login #loginPasswordToggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  min-height: 0;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #684d83;
  background: transparent;
  box-shadow: none;
}
#login #loginPasswordToggle svg { width: 16px; height: 16px; }
#login .ribbon-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 8px;
  background: rgba(219, 193, 255, .36);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 16px rgba(58, 33, 111, .1);
}
#login .ribbon-login-submit svg { width: 16px; height: 16px; }
#login .ribbon-login-submit:hover { background: rgba(231, 211, 255, .52); transform: none; }
#login .ribbon-login-submit:disabled { cursor: wait; opacity: .6; }
#login button:focus-visible, #login input:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
#loginMsg { display: block; min-height: 24px; margin: 10px 0 18px; color: #fff; font-size: 13px; text-align: center; }
#login .login-footer {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  text-shadow: 0 1px 5px rgba(40, 24, 101, .28);
}
@media (max-width: 600px) {
  #login .login-time { top: 12dvh; }
  #loginDate { font-size: 18px; }
  #loginClock { font-size: 96px; margin-top: 10px; }
  #login .login-company { top: 39dvh; font-size: 21px; }
  #login .login-footer { bottom: 10px; }
  #login .ribbon-login-form { top: 49dvh; }
  #login .login-tools { right: 12px; top: 12px; gap: 8px; }
  #login .login-tools > * { height: 34px; width: 34px; }
}
@media (max-height: 660px) and (min-width: 601px) {
  #login .login-time { top: 30px; }
  #loginClock { font-size: 100px; margin-top: 8px; }
  #login .ribbon-login-form { padding-top: 230px; }
  #login .login-avatar { width: 70px; height: 70px; }
}
@media (min-width: 601px) and (max-height: 760px) {
  #login .ribbon-login-form { top: 52dvh; }
}
@media (max-width: 600px) and (max-height: 660px) {
  #login .login-company { top: 37dvh; }
  #login .ribbon-login-form { top: 43dvh; }
}
.login-mode-picker { display:flex; gap:8px; margin:14px 0 6px; }
.login-mode { flex:1; border:1px solid rgba(28,91,180,.22); background:#fff; color:#44516a; border-radius:7px; padding:9px 10px; cursor:pointer; font-weight:700; }
.login-mode.active { background:#2563eb; color:#fff; border-color:#2563eb; }
