.main-content {
    align-items: center;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.login-form {
    align-items: center;
    align-self: center;
    color: var(--text-label);
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--gap-5xl);
    justify-content: flex-start;
    max-width: 100%;
    width: 800px;
    text-align: center;
}

.page-title {
    font-size: 32px;
    margin: 0;
    padding-bottom: 20px;
    width: 100%;
}

.form-text {
    font-size: 20px;
    margin-bottom: 40px;
    text-align: left;
    position: relative;
}

.form-text label {
    display: inline-block;
    max-width: 100%;
    width: 240px;
}

.form-text input {
    border-color: gray;
    border-radius: 4px;
    border-width: 0.5px;
    box-sizing: border-box;
    font-size: 16px;
    height: 44px;
    max-width: 100%;
    padding: 10px 10px 10px 10px;
    width: 544px;
}

.form-checkbox {
    align-items: center;
    display: flex;
    font-size: 14px;
    justify-content: center;
    margin-bottom: 40px;
    text-align: left;
}

.form-checkbox label {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    margin-left: 8px;
}

.form-checkbox input[type="checkbox"] {
    cursor: pointer;
    height: 24px;
    width: 24px;
}

.button-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.forgot-password {
    color: #3390DC;
    font-size: 14px;
}

.status-message {
    background: #eaf6ea;
    border: 1px solid #b9ddb9;
    border-radius: 8px;
    color: #206a2d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

a {
    text-decoration: underline;
}

/* エラーメッセージ（入力欄の開始位置に揃える） */
.error-message {
    color: #e3342f;
    font-size: 14px;
    margin: 6px 0 0 240px; /* ラベル幅ぶんだけ字下げして入力欄に揃える */
    display: block;
    line-height: 1.4;
}

@media screen and (max-width: 900px) {
    .main-content {
        padding: 0 var(--padding-xl);
        box-sizing: border-box;
    }

    .login-form {
        width: 100%;
        max-width: 100%;
    }

    .form-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .form-text label {
        width: 100%;
    }

    .form-text input {
        width: 100%;
    }

    .form-checkbox {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .form-checkbox label {
        margin-left: 0;
    }

    .button-wrapper .button-primary {
        width: 100%;
    }

    .error-message {
        margin-left: 0; /* モバイルではラベルが上に来るので字下げを解除 */
    }
}
