:root {
    --action-color: rgb(237, 139, 0);
    --btn-gradient: linear-gradient(var(--action-color),rgb(230, 120, 0));
    --btn-disabled: rgba(237, 139, 0, 0.2);
}

/* -- FONTS -- */

/* latin-ext */
@font-face {
    font-family: "Montserrat";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/montserrat-latin-ext-italic-100-900.woff2) format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: "Montserrat";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/montserrat-latin-italic-100-900.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/montserrat-latin-ext-normal-100-900.woff2) format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/montserrat-latin-normal-100-900.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -- */

/* -- TAGS -- */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    position: relative;
    display: flex;
    align-items: safe center;
    justify-content: safe center;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #eee;
    font-family: "Montserrat";
    font-size: 0.8em;
    line-height: 1.4em;
    font-weight: 400;
}

input[type="password"],
input[type="text"] {
    flex: 1;
    padding: 8px;
    font: inherit;
    font-size: 16px;
    line-height: 1.6em;
    border: 1px solid rgb(225,225,225);
    border-radius: 8px;
    background-color: rgb(245,245,245);
    box-shadow: inset 2px 2px 6px rgb(225,225,225);
}

input[type="password"]:focus,
input[type="text"]:focus {
    outline: 1px solid rgb(215,215,215);
    outline-offset: 3px;
}

input[type="checkbox"] {
    margin: 0;
    width: 0;
    height: 0;
    display: inline;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus-visible,
input[type="text"]:focus {
    outline: none;
}

button {
    height: 40px;
    border: none;
    border-radius: 8px;
    background-color: var(--action-color);
    background: var(--btn-gradient);
    font-size: small;
    color: white;
    cursor: pointer;
    font: inherit;
}

button:focus {
    outline: 1px solid var(--action-color);
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    background-color: var(--btn-disabled);
    background: var(--btn-disabled);
}

button.submit {
    margin-top: 1.2em;
}

nav {
    text-align: right;
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
}

nav.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

ol {
    padding: 0 0 0 20px;
}

/* -- */

/* -- FLEXBOX -- */

.flx-box {
    display: flex;
}

.flx-row {
    flex-direction: row;
}

.flx-col {
    flex-direction: column;
}

.flx-align-center {
    align-items: center;
}

.flx-content-right {
    justify-content: end;
}

.flx-none {
    flex: none;
}

.flx-auto {
    flex: auto;
}

/* -- */

/* -- DEFAULTS -- */

.hidden {
    display: none;
}

.full-width {
    width: 100%;
}

/* -- */

/* -- CONFIRM DIALOG -- */

/* Beats the plain .hidden rule on specificity (not just source order), so
   it stays hidden regardless of where either rule sits in the file. */
.confirm-dialog-overlay.hidden {
    display: none;
}

.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.5);
}

.confirm-dialog {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 340px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.confirm-dialog-message {
    margin: 0;
    font-size: small;
    color: #000;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-dialog-cancel-btn {
    background: none;
    color: var(--action-color);
    border: 1px solid var(--action-color);
}

/* -- */

/* -- APP -- */

.frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
    max-width: 86%;
    min-height: 360px;
    padding: 80px 0;
}

.logo {
    flex: none;
    margin: 0 0 30px 0;
    width: 120px;
}

label {
    flex: none;
    display: flex;
    flex-direction: column;
    padding-left: 3px;
    font-size: x-small;
    line-height: 3em;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px;
    font: inherit;
    line-height: 1.6em;
    border: 1px solid rgb(225,225,225);
    border-radius: 8px;
    background-color: rgb(245,245,245);
    box-shadow: inset 2px 2px 6px rgb(225,225,225);
}

.input-wrapper:has(input:focus) {
    outline: 1px solid rgb(215, 215, 215);
    outline-offset: 3px;
}

.input-wrapper input {
    all: unset;
    flex: 1;
    display: flex;
    font: inherit;
    font-size: 16px;
    border: none;
}

.input-wrapper input:focus {
    outline: none;
}

.input-wrapper button {
    all: unset;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.input-wrapper button svg {
    flex: none;
    width: 20px;
    height: 20px;
    fill: #09C;
}

.input-wrapper button .icon-show,
.input-wrapper button .icon-hide { display: none; }

.input-wrapper button[data-visible="false"] .icon-show { display: flex; }
.input-wrapper button[data-visible="true"]  .icon-hide { display: flex; }

.input-wrapper button:focus {
    outline: 1px solid #09C;
    outline-offset: 2px;
}

.form {
    flex: none;
    display: flex;
    width: 100%;
    max-width: 400px;
    flex-direction: column;
    gap: 4px;
}

.note {
    width: 100%;
    max-width: 400px;
    font-size: 1em;
    color: #666;
}

.note ul {
    margin: 0;
    padding-left: 20px;
}

.message {
    flex: none;
    margin-top: 10px;
    padding: 10px;
    font-size: 1em;
    border-radius: 8px;
    background-color: rgba(255, 255, 0, 0.5);
}

.message ul {
    padding: 0 0 0 20px;
}

.flex {
    display: flex;
}

.block {
    display: block;
}

.introduction {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    font-size: small;
}

.title {
    font-weight: 600;
}

.character {
    padding: 4px;
    border-radius: 4px;
    background-color: rgb(235,235,235);
    font-weight: 700;
}

.nav-back {
    display: flex;
    width: 100%;
    max-width: 400px;
    margin: 0 0 20px 0;
    text-align: left;
}

.nav-back-link {
    display: flex;
    color: #09C;
    text-decoration: none;
}

button.nav-back-link {
    height: auto;
    padding: 0;
    background: none;
}

.nav-back-arrow {
    padding: 0;
    transform: scaleX(-1);
}

/* RESET REQUEST */

#supplied-email {
    font-weight: bold;
}

#success {
    text-align: left;
    margin-bottom: 40px;
}

/* ENROLL */
.char {
    display: inline-block;
    background: white;
    border-radius: 4px;
    width: 1.5em;
    text-align: center;
}

/* MFA VERIFICATION */
.mfa-verification {
    display: flex;
    flex-direction: column;
}

#totp-section,
#recovery-section {
    flex-direction: column;
}

#reauth-totp-code,
#totp-code,
#recovery-code {
    text-align: center;
    font-size: 1.5em;
}

#reauth-totp-code::-moz-placeholder, #totp-code::-moz-placeholder, #recovery-code::-moz-placeholder {
    color: #CCC;
}

#reauth-totp-code::placeholder,
#totp-code::placeholder,
#recovery-code::placeholder {
    color: #CCC;
}

.trust-device {
    margin: 12px 0;
}
