*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #3f4650;
    font-family: "Yu Gothic Medium", "YuGothic", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 102px;
    background: #fff;
    border-top: 1px solid #d9d9d9;
    box-sizing: border-box;
}

.site-header__logo {
    width: 130px;
    height: 78px;
    object-fit: contain;
}

.login-page {
    min-height: 100vh;
    padding: 130px 20px 72px;
    background-image: linear-gradient(90deg, #35abc0 0%, #70b8c4 55%, #c4c9c9 100%);
    background-repeat: no-repeat;
    background-size: 100% 336px;
}

.login-content {
    width: min(100%, 880px);
    margin: 0 auto;
}

h1 {
    margin: 0 auto 116px;
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0;
}

.login-form {
    width: 100%;
}

.login-card {
    width: 100%;
    padding: 68px 100px 84px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.08);
}

.form-field {
    width: 100%;
    margin-bottom: 22px;
}

.form-field:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #4f5661;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

input,
select {
    width: 100%;
    max-width: 100%;
    height: 46px;
    padding: 2px 5px;
    color: #000;
    font: inherit;
    font-size: 16px;
    background-color: #eaf2ff;
    border: 0;
    border-radius: 0;
    outline: 0;
}

select {
    padding-right: 34px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #231f20 50%),
        linear-gradient(135deg, #231f20 50%, transparent 50%);
    background-repeat: no-repeat;
    background-position: right 8px center, right 2px center;
    background-size: 6px 6px, 6px 6px;
    border-bottom: 1px solid #d8d8d8;
    appearance: none;
}

input:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(59, 174, 198, 0.18);
}

select:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.password-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.password-row input[type="password"],
.password-row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.password-toggle {
    display: inline-flex;
    flex: 0 0 154px;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #3f4650;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.password-toggle span {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #231f20;
    border-radius: 50%;
}

.password-toggle input:checked + span {
    border-color: #3baec6;
    box-shadow: inset 0 0 0 4px #fff;
    background: #3baec6;
}

button {
    display: block;
    width: min(100%, 440px);
    height: 60px;
    margin: 70px auto 0;
    padding: 0;
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    background-image: linear-gradient(90deg, #168fcc 0%, #69c8d4 100%);
    border: 0;
    border-radius: 30px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.25s linear;
}

button:hover:not(:disabled) {
    opacity: 0.75;
}

.login-footer {
    width: 100%;
    margin: 118px auto 0;
}

.login-help {
    margin-bottom: 54px;
}

.login-help h2 {
    margin: 0 0 24px;
    color: #35abc0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}

.login-help a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-help p {
    margin: 0;
    color: #1f2630;
    font-size: 12px;
    line-height: 1.9;
}

.copyright {
    margin: 0;
    padding-top: 32px;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid #e6e6e6;
}

@media screen and (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .login-page {
        padding: 72px 20px 48px;
        background-size: 100% 248px;
    }

    .site-header__logo {
        width: 80px;
        height: 48px;
    }

    h1 {
        margin-bottom: 70px;
        font-size: 20px;
    }

    .login-card {
        padding: 34px 12.5% 44px;
        border-radius: 20px;
    }

    .form-field {
        margin-bottom: 18px;
    }

    label,
    .password-toggle {
        font-size: 12px;
    }

    input,
    select {
        height: 44px;
        font-size: 16px;
    }

    .password-row {
        display: block;
    }

    .password-toggle {
        width: fit-content;
        margin-top: 12px;
    }

    button {
        height: 40px;
        margin-top: 42px;
        font-size: 16px;
        border-radius: 20px;
    }

    .login-footer {
        margin-top: 64px;
    }

    .login-help {
        margin-bottom: 36px;
    }

    .login-help h2 {
        margin-bottom: 18px;
        font-size: 18px;
    }

    .login-help p {
        font-size: 12px;
        line-height: 1.8;
    }

    .copyright {
        padding-top: 24px;
    }
}
