/*
   Public pages (_MainLayout): login, registration, invitation, password reset, confirmations and the error pages.
*/

.login { max-width: 330px; width: 100%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background-color: white; border-radius: 2px; border: 1px solid #D0D0D0; box-shadow: 0 0 20px 5px rgba(0,0,0,0.05); }
.login-img { margin: 0 auto; text-align: center; padding: 24px 0 4px 0; }
.login-img img { height: 110px; width: auto; }
.login h1 { font-size: 17px; text-align: center; margin: 0; padding: 15px 0; }
.login button { background: var(--color); border: 1px solid rgba(0,0,0,0.2); width: 100%; color: white; min-height: 32px; height: auto; padding: 6px 12px; line-height: 1.3; font-weight: bold; border-radius: 3px; text-transform: uppercase; font-size: 13px; cursor: pointer; }
.login button i { margin-right: 5px; }
.login button:hover { opacity: 0.7; }
.login button:disabled { opacity: 1; color: gray; background: #dcdcdc; border-color: #dcdcdc; cursor: not-allowed; }
.login a.button { display: block; text-align: center; line-height: 30px; text-decoration: none; color: #FFF; }
.login hr { border-color: #d7d7d7; }
.login a { color: var(--color); cursor: pointer; }
.login .padding p { text-align: center; margin: 0 0 20px; }
.login .padding h2 { text-align: center; margin: 0 0 10px; }

/* the panels of the login page: one is shown at a time */
.auth-panel-inactive { display: none; }
.auth-links { display: flex; justify-content: space-between; padding: 0 20px 15px; font-size: 12px; }

/* error and forbidden page */
.error { color: #333; text-align: center; padding: 50px 10px 10px 10px; }
.error .name { font-size: 50px; font-weight: bold; }
.error .message { font-size: 14px; }

.ui-dark .login { background-color: #202020; border-color: #353535; box-shadow: 0 0 20px 5px rgba(0,0,0,0.3); }
.ui-dark .login button:disabled { color: #666; background: #303030; border-color: #303030; }
.ui-dark .login hr { border-color: #353535; }
.ui-dark .error { color: #E0E0E0; }

/* public page to be added to a property (the form of an owner opens in the window of the application): as wide as the login, a long form scrolls inside of the card (the page itself does not scroll) */
.login.join { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
.login.join .padding p.join-question { font-weight: bold; margin-bottom: 10px; }
.login.join .join-choice { min-height: 44px; font-size: 14px; margin-top: 6px; }
.login.join .join-choice-secondary { background: transparent; color: var(--color); border: 1px solid var(--color); }
.login.join .join-choice-hint { text-align: center; margin: 4px 0 12px; }
/* a button under another button keeps the gap, whatever the reset of the buttons says; the space below comes from the next element (e.g. the hint) */
.login.join .join-stacked { display: block; margin: 4px 0 0 0; }
.login.join .join-steps { margin: 0 0 14px; padding-left: 22px; font-size: 13px; line-height: 1.5; }
.login.join .join-message { background: rgba(128, 128, 128, 0.12); border-radius: 3px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; line-height: 1.5; white-space: pre-line; word-break: break-word; }
.join-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }

/* switcher of the language of the public pages: a small pill in the top right corner */
.lang-switch { position: fixed; top: 12px; right: 12px; z-index: 20; display: flex; border: 1px solid #D0D0D0; border-radius: 14px; overflow: hidden; background: #FFF; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.lang-switch button { border: 0; background: transparent; padding: 0 11px; height: 26px; font-size: 12px; font-weight: bold; color: #888; cursor: pointer; font-family: inherit; }
.lang-switch button:hover { color: var(--color); }
.lang-switch button.active { background: var(--color); color: #FFF; cursor: default; }
.ui-dark .lang-switch { background: #202020; border-color: #353535; box-shadow: none; }
.ui-dark .lang-switch button { color: #909090; }
.ui-dark .lang-switch button:hover { color: var(--color); }
.ui-dark .lang-switch button.active { background: var(--color); color: #FFF; }
