/*=================================================================
    ログイン画面
=================================================================*/
.login {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}
.login__card {
    width: 100%;
    max-width: 440px;
    padding: 48px 40px 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Header */
.login__title {
    font-size: 26px;
    font-weight: 700;
    color: #222222;
    text-align: center;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.login__subtitle {
    font-size: 14px;
    color: #888888;
    text-align: center;
    margin-bottom: 36px;
}

/* Form */
.login__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.login__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.login__label {
    font-size: 13px;
    font-weight: 700;
    color: #444444;
    letter-spacing: 0.04em;
}
.login__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login__input-icon {
    position: absolute;
    left: 14px;
    color: #b0b0b0;
    font-size: 20px;
    pointer-events: none;
    transition: color 0.2s;
}
.login__input-wrap input {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333333;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login__input-wrap input:focus {
    outline: none;
    border-color: #222222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}
.login__input-wrap input:focus + .login__input-icon,
.login__input-wrap:focus-within .login__input-icon {
    color: #222222;
}
.login__input-wrap input::placeholder {
    color: #bbbbbb;
}

/* Error */
.login__error {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    color: #e14848;
}
.login__error .material-icons {
    font-size: 16px;
}

/* Submit */
.login__actions {
    margin-top: 12px;
}
.login__submit {
    display: block;
    width: 100%;
    height: 52px;
    border: 2px solid #111111;
    border-radius: 8px;
    background-color: #111111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: opacity 0.2s;
}
.login__submit:hover {
    opacity: 0.8;
}
.login__submit:active {
    opacity: 0.7;
}

/* Footer */
.login__footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.login__link {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s;
}
.login__link:hover {
    color: #111111;
    text-decoration: underline;
}
.login__link--primary {
    font-weight: 700;
    color: #003894;
}
.login__link--primary:hover {
    color: #001f5c;
}

/*=================================================================
    スマホ用
=================================================================*/
@media screen and (max-width: 768px) {
    .login {
        padding: 24px 16px;
    }
    .login__card {
        padding: 36px 24px 32px;
        border-radius: 12px;
    }
    .login__title {
        font-size: 22px;
    }
    .login__subtitle {
        font-size: 13px;
        margin-bottom: 28px;
    }
    .login__submit {
        height: 48px;
        font-size: 15px;
    }
}
