html,
body {
    background-color: rgb(228, 244, 250);
    height: 100%;
    padding: 0px;
    margin: 0px;

}

:root {
    --input-primary-color: #1887e8;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    position: absolute;
    top: 30px;
    left: 30px;
}

.back-button {
    position: absolute;
    top: 30px;
    left: 30px;

    span {
        color: black;
    }
}

.progress {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 580px;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    background-color: white;
    width: 500px;
    height: 280px;
    padding: 40px;
    box-shadow: 10px 10px 15px 0 #0000000a;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.login-btn {
    margin-top: 5px;
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.passkey-btn {
    margin-top: 5px;
    position: absolute;
    bottom: 0px;
    left: 0px;
}

.input-button {
    border-radius: 25px;
    background-color: #3c7ade;
    color: white;
    height: 50px;
    padding: 5px;
    border: #0000000a solid 0;
    width: 100px;
    margin: 10px;
    margin-top: 20px;
    display: block;
    cursor: pointer;
}

.input-button:hover {
    background-color: #356ec9;
    box-shadow: 3px 3px 3px 0 #0000001a;
}

.input-button:disabled {
    background-color: #1f4179;
    cursor: default;
}

.input-button:disabled:hover {
    box-shadow: none;
}

.footer {
    display: flex;
    justify-content: flex-end;
}

.middle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.login {
    margin: 5px;
}

.message-box {
    width: 60%;
}

.login-box {
    width: 40%;
}

.card-content {
    margin-top: 60px;
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    &.forward-closing {
        animation: forward-closing-card 0.15s ease-in forwards;
    }

    &.forward-opening {
        animation: forward-opening-card 0.15s ease-out forwards;
    }

    &.backward-closing {
        animation: backward-closing-card 0.15s ease-in forwards;
    }

    &.backward-opening {
        animation: backward-opening-card 0.15s ease-out forwards;
    }
}


#account-id,
#account-password {
    margin: 20px 0px 10px 0px
}

circle {
    fill: none;
    stroke: #3c7ade;
    stroke-width: 10;
    stroke-linecap: round;
    /* 使うkeyframesの名前、再生時間、補間の仕方、繰り返すかどうか、をそれぞれ指定している */
    animation: wax-and-wane 2s cubic-bezier(.5, 0, .5, 1) infinite, rotate 1.5s linear infinite;
}

/* 全体の再生時間のn%のときになってほしいCSSプロパティを指定する */
@keyframes wax-and-wane {

    /* 状態1 */
    0% {
        stroke-dasharray: 236 78;
        stroke-dashoffset: -37;
    }

    /* 状態2 */
    50% {
        stroke-dasharray: 20 294;
        stroke-dashoffset: -304;
    }

    /* 状態3 */
    100% {
        stroke-dasharray: 236 78;
        stroke-dashoffset: -351;
    }
}

@keyframes rotate {

    /* 0%の時はどっちみち0度なので省略してもよいです */
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes forward-closing-card {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-60px);
        opacity: 0;
    }
}

@keyframes forward-opening-card {
    0% {
        transform: translateX(60px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes backward-closing-card {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(60px);
        opacity: 0;
    }
}

@keyframes backward-opening-card {
    0% {
        transform: translateX(-60px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

.error {
    color: #b02828;
    padding: 0px;
    margin: 0px;
}

.message {
    margin: 0px;
}

.circle-progress {
    display: none;
    position: absolute;
    left: 250px;
    top: 200px;
}

.card-fixed-area {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 40px;
}

.outline-input-normal {
    width: 250px;
}

@media (min-width: 580px) {
    .small-view-only {
        display: none;
    }
}

@media (max-width: 580px) {
    .large-view-only {
        display: none;
    }

    .login-btn {
        position: unset;
    }

    .passkey-btn {
        position: unset;
    }

    .card {
        width: 100%;
        height: calc(100% - 50px);
        box-shadow: none;
        padding-bottom: 0px;
        padding-top: 50px;
        border-radius: 0px;
    }

    .logo {
        position: absolute;
        top: 50px;
        left: 20px;

        &.closing {
            animation: fadeOut 0.2s ease forwards;
        }

        &.opening {
            animation: fadeIn 0.2s ease forwards;
        }
    }

    .back-button {
        position: absolute;
        top: 50px;
        left: 20px;

        span {
            color: black
        }

        &.closing {
            animation: fadeOut 0.2s ease-in forwards;
        }

        &.opening {
            animation: fadeIn 0.2s ease-out forwards;
        }
    }


    .circle-progress {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }
}