/*
 * Login layout and adapted login-poster.webp reference Open Condo, commit
 * 7a346979074e4d66127de4faff078652fc25e99f. The tablet screen is localized.
 * MIT License. Copyright (c) 2020 8IQ Software Company.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
body:has(> .condo-login:not([hidden])) { min-width: 0; }
.condo-login {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px;
  color: #181818;
  background: #fff;
}
.condo-login[hidden] { display: none; }
.login-poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  padding: 32px 32px 20px;
  border-radius: 20px;
  background: radial-gradient(circle at bottom left, #6fcd92, #e5f1fd 50%);
}
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.login-brand strong { font-size: 23px; font-weight: 700; letter-spacing: -.7px; }
.login-brand-mark {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 40px;
  height: 40px;
  padding-bottom: 10px;
  color: white;
  background: #168846;
  border-radius: 12px;
}
.login-brand-mark i { width: 5px; height: 12px; background: currentColor; border-radius: 2px 2px 0 0; }
.login-brand-mark i:nth-child(2) { height: 19px; }
.login-brand-mark i:nth-child(3) { height: 15px; }
.login-poster-copy h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.27;
  font-weight: 700;
  letter-spacing: -.035em;
}
.login-poster-copy p { margin: 20px 0 0; font-size: 16px; line-height: 1.6; }
.login-poster-image {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.login-body {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}
.condo-login-form { width: 100%; max-width: 324px; }
.condo-login-form h1 {
  margin: 0 0 40px;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.035em;
}
.login-fields { display: grid; gap: 24px; }
.login-fields label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.login-fields input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #c6c9d1;
  border-radius: 8px;
  color: #181818;
  line-height: 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.login-fields input:hover { border-color: #797d88; }
.login-fields input:focus-visible { outline: 0; border-color: #1d9e55; box-shadow: 0 0 0 3px #1d9e5526; }
.login-message { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #b32d34; }
.login-message:empty { display: none; }
.condo-login .login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 32px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.condo-login .login-submit:hover { background: linear-gradient(90deg, #26c756, #4ba2e4); color: #fff; }
.condo-login .login-submit:active { background: linear-gradient(90deg, #2abb56, #3996dd); }
.condo-login .login-submit:focus-visible { outline: 3px solid #15562f; outline-offset: 3px; }
.condo-login .login-submit:disabled { opacity: .6; cursor: wait; }

@media (max-height: 720px) {
  .login-poster-image { display: none; }
}
@media (max-width: 991px) {
  .condo-login { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .login-poster { display: block; min-height: auto; padding: 20px; border-radius: 0; background: #f2f3f7; }
  .login-poster-copy, .login-poster-image { display: none; }
  .login-body { flex: 1; padding: 40px 20px; }
  .condo-login-form { max-width: 497px; }
}

.portal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 16px; }
.portal-link { color: var(--muted); font-size: 14px; text-underline-offset: 3px; }
.portal-link:hover { color: var(--ink); }
