/* New look for login and password reset. Linked from main/templates/login.itt and team/templates/login.itt.
   The pages keep their markup and inline rules; these selectors simply outrank them. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Owner's call: login shows the actual wallpaper, sharp. Frosted glass is for after sign-in only. */
body.look-login { background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
body.look-login * { font-family: Inter, "Segoe UI", Arial, sans-serif; }
body.look-login .loginbox {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .12);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, .28);
  padding: 24px 32px 28px;
}
body.look-login .loginbox img { display: block; max-width: 100%; height: auto; margin: 0 auto 18px; }
body.look-login label { color: #475467; font-size: 12px; font-weight: 600; }
body.look-login .input input {
  height: 40px;
  margin: 5px auto 14px;
  padding: 8px 12px;
  background: #fff;
  color: #1b2230;
  border: 1px solid #8b94a5;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}
body.look-login .input input:focus-visible { outline: 2px solid #fff; box-shadow: 0 0 0 4px #1b2230; }
body.look-login input.button {
  height: 38px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
body.look-login .button a:not(.backup_codes) { color: #475467; font-size: 12px; font-weight: 600; }
body.look-login .button a:not(.backup_codes):hover { color: #1b2230; text-decoration: underline; }
body.look-login .button a.backup_codes { border-radius: 8px; font-size: 12px; font-weight: 600; }
body.look-login .error { background: #fef3f2; color: #b42318; border-radius: 8px; font-size: 13px; }
body.look-login #remember_device { color: #475467; font-size: 13px; }

/* loginmodern 2026-11-11: more modern login box, theme colors kept (box = menu color, labels = font color, button = button color). */
body.look-login .loginwrap { position: fixed; top: 50%; left: 50%; width: min(400px, calc(100vw - 32px)); margin: 0; transform: translate(-50%, -50%); }
body.look-login .loginbox { padding: 34px 34px 28px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 64px rgba(10, 15, 30, .38), 0 2px 6px rgba(10, 15, 30, .18); text-align: left; }
body.look-login .loginbox img { width: auto; max-height: 64px; margin: 0 auto 26px; }
body.look-login .loginbox label { display: block; margin: 0 0 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
body.look-login .loginbox .input { position: relative; margin: 0 0 16px; }
body.look-login .loginbox .input input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px 0 44px; border: 1px solid rgba(16, 24, 40, .18); border-radius: 12px;
  background-color: #fff; background-repeat: no-repeat; background-position: 14px center; background-size: 18px 18px; color: #1b2230; font-size: 15px; font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .06); transition: box-shadow .15s ease, border-color .15s ease; }
body.look-login .loginbox .input input::placeholder { color: #98A2B3; font-weight: 400; }
body.look-login .loginbox .input input:focus, body.look-login .loginbox .input input:focus-visible { outline: none; border-color: var(--login-btn, #2563EB); box-shadow: 0 0 0 4px color-mix(in srgb, var(--login-btn, #2563EB) 38%, transparent); }
body.look-login .loginbox .input input[name="name"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E"); }
body.look-login .loginbox .input input[name="pass"], body.look-login .loginbox .input input[type="password"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
body.look-login .loginbox .input input[name="email"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
body.look-login .loginbox .input input:is([name="auth_code"], [name="backup_code"]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); letter-spacing: .2em; }
body.look-login .loginbox .input.llg-has-eye input { padding-right: 48px; }
body.look-login .loginbox .llg-eye { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: #667085; cursor: pointer; }
body.look-login .loginbox .llg-eye:hover { background: #F2F4F7; color: #1b2230; }
body.look-login .loginbox .button { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 14px; margin-top: 8px; text-align: center; }
body.look-login .loginbox :is(input.button, a.button) { display: block; width: 100%; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 48px;
  letter-spacing: .01em; text-transform: none; text-align: center; text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); cursor: pointer; transition: filter .15s ease, transform .05s ease; }
body.look-login .loginbox :is(input.button, a.button):hover { filter: brightness(1.07); opacity: 1; }
body.look-login .loginbox :is(input.button, a.button):active { transform: translateY(1px); }
body.look-login .loginbox .button a:not(.button):not(.backup_codes) { position: static; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; }
body.look-login .loginbox .button a:not(.button):not(.backup_codes):hover { text-decoration: underline; }
body.look-login .loginbox .button a.backup_codes { position: static; display: block; margin: 0; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .16); color: inherit; font-size: 13px; text-align: center; }
body.look-login .loginbox .error { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: left; }
body.look-login .loginbox #remember_device { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; line-height: 1.3; }
body.look-login .loginbox #remember_device input { width: 16px; height: 16px; margin: 0; }
