@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500&family=Noto+Sans+JP&display=swap');

* {
    box-sizing: border-box;
}

.small {
    font-size: .875em;
}

.text-muted {
    color: #6c757d !important;
}

body {
    line-height: 1.5;
}

div.background {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(232, 219, 214);
}

div.content {
    display: flex;
    flex-direction: column;
    width: 450px;
    height: 400px;
    background: #fff;
    padding: 40px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
    font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
}

div.logo {
    background: url(/img/logo-nissoken.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    user-select: none;
    height: 60px;
    margin-bottom: 24px;
    margin-right: 24px;
}

div.description {
    margin: 1rem 0 1.5rem;
    color: rgba(0, 0, 0, .5);
    font-size: .9rem;
}

div.description p {
    margin: 0;
}

div.description p + p {
    margin-top: 1em;
}

div:has(> input) {
    margin: 12px 0;
}

input[type=text], input[type=password] {
    width: 100%;
    padding: .375rem .75rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

input[type=text]:focus, input[type=password]:focus, button:focus {
    border-color: rgba(13, 202, 240, 1);
    box-shadow: 0 0 0 4px rgba(13, 202, 240, .45);
    outline: none;
}

div:has(> button) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

div:has(> button) a {
    text-decoration: none;
    font-size: .85rem;
    color: #009bc2;
    margin-left: .5rem;
}

button {
    background-color: #009bc2;
    border: none;
    border-radius: 100vh;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    padding: .375rem 1.5rem;
    position: relative
}

button:hover::after {
    background-color: rgba(255, 255, 255, .15);
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 100vh;
}

.message {
    margin-top: 6px;
}

.message.error {
    color: #f00;
}

footer {
    flex-grow: 1;
    display: flex;
    flex-direction: column-reverse;
    user-select: none;
}

footer small.powered-by {
    font-size: 10px;
}

footer small.powered-by span {
    color: #171881;
    font-family: 'EB Garamond', Garamond, Georgia, 'Times New Roman', Times, serif;
    display: inline-block;
    font-size: 110%;
    font-weight: bold;
    text-transform: uppercase;
}

footer small.powered-by span:not(:last-of-type):not(:first-of-type)::first-letter {
    font-size: 125%;
}

footer small.powered-by span:last-of-type {
    color: rgba(23, 24, 129, .4);
    font-size: 120%;
}
