@font-face {
    font-family: Avenir;
    font-weight: 700;
    src: url('/resources/fonts/Linotype-AvenirLTStd-Black.otf') format('opentype');
}

@font-face {
    font-family: Avenir;
    font-weight: 400;
    src: url('/resources/fonts/Linotype-AvenirLTStd-Medium.otf') format('opentype');
}

@font-face {
    font-family: Avenir;
    font-weight: 200;
    src: url('/resources/fonts/Linotype-AvenirLTStd-Book.otf') format('opentype');
}

:root {
    --system-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --base-font: Avenir, var(--system-font);
}

/* These languages have glyphs which do not render properly in Avenir */
:root:lang(bg),
:root:lang(el),
:root:lang(ja),
:root:lang(km),
:root:lang(ru),
:root:lang(uk),
:root:lang(zh),
:root:lang(vi) {
    --base-font: var(--system-font);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: var(--base-font);
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

main {
    width: 450px;
}
@media only screen and (max-width: 420px) {
    main {
        width: 280px;
    }
}

header {
    align-self: flex-start;
}

header img {
    width: 150px;
    height: auto;

    margin: 18px 0 32px 40px;
}

@media only screen and (max-width: 900px) {
    header {
        align-self: auto;
    }

    header img {
        width: 100px;
        margin: 30px 0;
    }
}

h1 {
    font-weight: 400;
    font-size: 34px;

    color: #1c2533;

    margin: 0;
}

@media only screen and (max-width: 420px) {
    h1 {
        font-size: 22px;
    }
}

p.description {
    font-weight: 200;
    font-size: 18px;
    color: #6b7988;

    line-height: 140%;

    margin-top: 18px;
}

@media only screen and (max-width: 420px) {
    p.description {
        font-size: 14px;
        margin-top: 5px;
    }
}

form {
    margin-top: 30px;
}

form.has-alerts {
    margin-top: 30px;
}

@media only screen and (max-width: 420px) {
    form {
        margin-top: 30px;
    }
}

main label {
    display: block;

    font-size: 14px;
    letter-spacing: 1px;

    color: #4f5b68;

    font-weight: bold;
}

main input {
    display: block;

    width: 400px;
    height: 60px;

    margin: 10px 0 30px 0;

    box-shadow: none;
    -webkit-appearance: none;
}

@media only screen and (max-width: 420px) {
    main input {
        width: 280px;
    }
}

main input[type='text' i],
main input[type='password' i] {
    font-weight: 200;
    font-size: 18px;
    color: #4f5b68;

    border: 1px solid #caddef;

    padding: 12px 0 10px 20px;
}

main input[type='text']:hover,
main input[type='password']:hover {
    border: 1px solid #98a8b7;
}

main input[type='password' i] {
    letter-spacing: 1px;
}

main input[type='text']:focus,
main input[type='password']:focus {
    border: 1px solid #794bff;
    outline: none;
}

main input[type='text']::placeholder,
main input[type='password']::placeholder {
    font-weight: 200;
    font-size: 18px;
    color: #b2c3db;

    letter-spacing: 0px;
}

main input[type='text']:read-only {
    border: 1px solid #caddef;
    background-color: #f4f7f9;
}

main input[type='submit' i] {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;

    border: none;
    padding-top: 4px;

    color: white;
    background-color: #794bff;
    background-repeat: no-repeat;
    background-size: 22px auto;
    background-position: top 18px left 20px;

    cursor: pointer;
}

.lock {
    background-image: url('/resources/lock-icon.svg');
}

main input[type='submit' i]:hover {
    background-color: #845aff;
}

div#links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#links > a {
    color: #6b7988;
    text-decoration: none;

    font-size: 12px;
}

#links > a:hover {
    color: #794bff;
}

a#resetPassword,
a#updatePassword,
a#resetTokenError {
    display: block;
    margin: 5px 0;

    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

a#resetTokenError {
    margin-top: 30px;
}

a#back {
    display: flex;
    align-items: center;

    margin: 30px 0 0 0;

    font-weight: 400;
    font-size: 17px;
}

a#back svg {
    display: inline;
    margin-right: 5px;
}

a#back .back-arrow {
    fill: #6b7988;
}

a#back:hover .back-arrow {
    fill: #794bff;
}

a#back span {
    padding-top: 2px;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin: 20px 0;
}

li > a {
    display: block;

    border: 1px solid #caddef;
    padding: 15px 0 15px 20px;
    text-decoration: none;
    color: #6b7988;
}

li > a:hover {
    background-color: #f8f8f8;
}

#errors {
    font-weight: 400;
    font-size: 16px;

    padding: 10px 20px;
    margin-top: 10px;

    line-height: 140%;

    color: #ed4a6e;
    background-color: #fedfe0;
}

#errors p {
    margin: 10px 0;
}

#messages {
    font-weight: 400;
    font-size: 16px;

    padding: 10px 20px;

    line-height: 140%;

    color: #049e51;
    background-color: #d7f5e3;
}

#messages p {
    margin: 10px 0;
}

.admin_list-accounts_table-container {
    display: flex;
    align-content: center;
    justify-items: center;
}

.customers_table-customers_table-container {
    display: flex;
    align-content: center;
    justify-items: center;
}

.admin_list-accounts_table {
    border-spacing: 0px;
    border-collapse: collapse;
    align-self: flex-start;
}

.admin_list-accounts_table td,
th {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

.admin_list-customers_table {
    border-spacing: 0px;
    border-collapse: collapse;
    align-self: flex-start;
}

.admin_list-customers_table td,
th {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

.admin_list-accounts_table tr:nth-child(even) {
    background-color: #d3e3f6;
}

.admin_list-customers_table tr:nth-child(even) {
    background-color: #f8d6f9;
}

.admin_show-account_flex-list-container {
    display: flex;
    margin-top: 5px;
}

.admin_show-account_flex-list-left-item {
    flex-grow: 1;
}

.admin_show-account_flex-list-middle-item {
    flex-grow: 0;
    margin-right: 50px;
}

.admin_show-account_flex-list-right-item {
    flex-shrink: 0;
}

.delete-button-link {
    background: none; 
    border: none; 
    color: blue; 
    text-decoration: underline; 
    cursor: pointer;
}

.links {
    font-size: 24px;
}

.admin_title {
    padding: 20px;
}

.admin_show-account_list {
    margin: 0px;
}

.admin_show-account_list-item {
    padding: 20px;
    margin: 0px;
    border-bottom: 1px solid #b5b5b5;
    border-left: 1px solid #b5b5b5;
    border-right: 1px solid #b5b5b5;
}

.admin_show-account_list-item:nth-child(1) {
    border-top: 1px solid #b5b5b5;
}

.breadcrumb {
    align-self: flex-start;
}

.error_page {
    display: inline-block;
    text-align: center;
    width: 90%;
    max-width: 500px;
    min-width: 120px;
}

.mail {
    display: inline-block;
    background: url(mail.svg);
    padding-left: 30px;
}

p a {
    color: #6b7988;
    text-decoration: none;
}

p a:hover {
    color: #794bff;
}

.profile-circle-color_purple {
    color: #794bff;
}

.profile-circle-color_pink {
    color: #ee4877;
}

.profile-circle-color_green {
    color: #4dd387;
}

.profile-circle-color_orange {
    color: #e8961a;
}

.profile-circle-color_red {
    color: #ed325a;
}

.profile-circle-color_blue {
    color: #00d7df;
}

.red {
    color: #ed325a;
}

.green {
    color: #4dd387;
}

.orange {
    color: #e8961a;
}
