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: 630px;
}

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

.login-btn {
    margin: 10px 0;
    width: auto;
}

.text-btn {
    margin: 10px 0;
    width: auto;
    justify-content: center;
}

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

.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: 10px 0 20px 0;
    font-family: "Inter", sans-serif;
    color: #323232;
}

.welcome {
    color: #5d5d5d;
    font-weight: 500;
}

.message-box {
    width: 60%;
}

.login-box {
    width: 40%;
}

.card-content {
    margin-top: 60px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 30px;

    &.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-code {
    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;
}

.google-auth-btn {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.google-auth-btn:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 12px;
}

.outline-input-normal {
    width: auto;
}

#code-card {
    justify-content: space-evenly;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 全体の再生時間の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 {
    text-align: center;
    color: #b02828;
    padding: 0px;
    margin: 0px;
}

.message {
    margin: 0px;
}

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

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


@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;
    }
}