@import url("./fonts.css");

:root {
    --placeholder-color: #9ca3af;
    --accent-color: #007fff;
    --border-color: #e5e7eb;
    --tobiko-color: #ff5700;
}

body {
    margin: 0;
    line-height: inherit;
    font-family: "Inter", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    box-sizing: border-box;
}

.border {
    border-style: solid;
    border-color: var(--border-color);
    border-width: 1px;
    border-radius: 0.75rem;
}

h1 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}
div.tos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
div.tos input {
    margin-left: 1em;
    display: block;
}
div.tos label {
    display: block;
    height: auto;
    width: auto;
    line-height: 1.2em;
}
div.tos a:link,
div.tos a:visited {
    color: var(--accent-color);
}
div.wrapper {
    box-sizing: border-box;

    display: flex;

    justify-content: center;
    align-items: center;

    min-height: 100vh;
}

div.login {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    padding: 2rem;
    width: 20%;
    min-width: 360px;
}

div.controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

div.error {
    padding: 0.5rem;
    color: red;
}

label,
form,
button,
input,
optgroup,
select,
textarea {
    display: block;
    box-sizing: border-box;
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}
input.user-code-input,
input.password,
input.email {
    width: 344px;
    height: 2.6rem;
    padding: 0.5rem;
}
label {
    height: 2rem;
    line-height: 1rem;
    padding: 0.5rem;
    flex-grow: 2;
    color: var(--placeholder-color);
}
a.impersonation.button {
    width: 11rem;
}
a.button,
input.submit {
    box-sizing: border-box;
    display: block;
    background-color: var(--accent-color);
    color: white;
    width: 5rem;
    height: 32px;
    text-decoration: none;
    text-align: center;
}
input.submit:disabled {
    background-color: var(--placeholder-color);
}
a.button {
    line-height: 32px;
}
input::placeholder {
    opacity: 1;
    color: var(--placeholder-color);
}

div.user {
    position: relative;
    display: flex;
    flex-direction: row;
}
div.info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
img + div.info {
    align-items: flex-start;
    margin-left: 1rem;
}
div.info span {
    display: block;
}
span.email {
    font-style: italic;
    text-decoration: none;
    color: var(--placeholder-color);
}
span.email a {
    color: inherit;
    text-decoration: inherit;
}
img.picture {
    height: 4em;
    width: 4em;
}

div.login p {
    text-align: center;
    margin: 0;
}
div.login p.verify {
    text-align: left;
    line-height: 1.2em;
    padding: 0.5em;
}
