* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-body-bg);
}

.login-container {
    padding: 80px 48px;
}

.login-card {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
    border-radius: 16px;
}

.login-title {
    font-size: 30px;
    font-weight: bold;
    line-height: 38px;
    text-align: center;
}

.user-selector {
    display: flex;
    gap: 16px;
}

.user-option {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.30);
    transition: all 0.3s ease;
}

.user-option.active {
    background-color: #f4811e;
    box-shadow: none;
}

.user-option.active .user-title {
    color: #fff;
}

.icon-active {
    display: none;
}

.user-option.active .icon-active {
    display: block;
}

.user-option.active .icon-inactive {
    display: none;
}

.user-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 30px;
    color: #454545;
    text-align: center;
}

.form-input, .form-container {
    display: flex;
    flex-direction: column;
}

.form-input {
    row-gap: 32px;
}

.form-container {
    row-gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 16px;
    color: #333;
}

.input-label > label {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #454545;
}

.required-badge {
    background: #E32B1F;
    padding: 0 4px;
    border-radius: 16px;
}

.required-badge > span {
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    color: white;
}

.input-field, .input-field-password {
    width: 100%;
    font-size: 16px;
    line-height: 40px;
    font-weight: 400;
    color: #020202;
    border: 1px solid #898C94;
    border-radius: 8px;
}

.input-field {
    padding: 0 12px;
}

.input-field:focus {
    outline: none;
    border-color: #FD8F46;
    box-shadow: inset 0 0 0 1px #FD8F46, 0 0 0 4px rgba(253, 143, 70, 0.24);
}

.input-field.is-invalid {
    padding-right: 40px;
    border-color: #FF2323;
}

.input-field-password {
    padding: 0 40px 0 12px;
}

.input-field-password.is-invalid {
    padding-right: 66px;
    border-color: #FF2323;
}

.input-icon, .icon, .password-toggle {
    position: absolute;
}

.input-icon {
    right: 12px;
}

.icon {
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.extra-icon {
    right: 40px;
    cursor: pointer;
}

.password-toggle {
    right: 12px;
    cursor: pointer;
}

.password-toggle img {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.2s;
}

.password-toggle .hide-password {
    opacity: 0;
}

.show .show-password {
    opacity: 0;
}

.show .hide-password {
    opacity: 1;
}

.message-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 12px;
    border: 1px solid #F6F6F6;
    border-radius: 8px;
}

.message-success {
    background-color: #EFFEF5;
    color: #116A39;
}

.message-error {
    background-color: #FFF0F0;
    color: #B10303;
}
.login-container .message-error {
    max-width: 422px;
}

.message-box > span {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.message-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.message-close i {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #116A39;
}

.hint-text-error {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #F44034;
}

.forgot-links {
    margin-top: 8px;
    text-align: right;
}

.forgot-links a {
    display: block;
    text-decoration: none;
    pointer-events: none;
}

.forgot-links .link-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #0073AB;
    pointer-events: auto;
    cursor: pointer;
}

.login-button {
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: white;
    background-color: #FD8F46;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #EC4B0A;
}

.login-button:focus {
    outline: none;
    background-color: #FD8F46;
    box-shadow: 0 0 0 4px rgba(253, 143, 70, 0.24);
}

.signup-text {
    gap: 4px;
}

.signup-text span, .signup-text a {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.signup-text span {
    color: #4F4F4F;
}

.signup-text a {
    color: #FD8F46;
    text-decoration: none;
}

.forgot-links a:hover, .signup-text a:hover {
    text-decoration: underline;
}

.form-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #454545;
}

.form-label.required::after {
    content: '必須';
    color: #FFFFFF;
    font-size: 10px;
    margin-left: 6px;
    background-color: #E32B1F;
    padding: 2px 4px;
    border-radius: 100px
}

@media screen and (max-width: 768px) {
    .login-container {
        padding: 40px 25px;
    }
}
/* Edge / IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Chrome, Safari (WebKit) */
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
}
